SIVector3.EpsilonEquals

Description

Tests the equality of this vector with the vector v, with a tolerance of Epsilon.

Scripting Syntax

oBoolean = SIVector3.EpsilonEquals( v, epsilon );

Return Value

Boolean True if this vector equals the vector v;otherwise False.

Parameters

Parameter Type Description
v SIVector3 Operand vector
epsilon Floating Point value Error margin

Possible Values:

Description:

[0, +INF[ should be a positive value

Examples

VBScript Example

dim v1, v2
' Create 3D vectors.
set v1 = XSIMath.CreateVector3(1.0, 2.0, 3.0)
set v2 = XSIMath.CreateVector3(1.001, 2.0, 3.0)
if v1.EpsilonEquals(v2, 0.002) then
Application.LogMessage "v1 mostly equals v2"
end if

See Also

SIVector3.Equals SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion