Tests the equality of this vector with the vector v, with a tolerance of Epsilon.
oBoolean = SIVector3.EpsilonEquals( v, epsilon ); |
Boolean True if this vector equals the vector v;otherwise False.
Parameter | Type | Description | ||||
---|---|---|---|---|---|---|
v | SIVector3 | Operand vector | ||||
epsilon | Floating Point value | Error margin
|
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 |