EpsilonEquals (SIVector3)
Description
Tests the equality of this vector with the vector v, with a tolerance of Epsilon.
Scripting Syntax
SIVector3.EpsilonEquals( v, epsilon )
C# Syntax
Int32 SIVector3.EpsilonEquals( SIVector3 in_pVector, Double in_dEpsilon );Parameters
|
Parameter |
Type |
Description |
|
v |
Operand vector |
|
|
epsilon |
Floating Point value |
Error margin Possible Values: • [0, +INF[: should be a positive value |
Return Value
Boolean True if this vector equals the vector v;otherwise False.
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
|
|
Autodesk Softimage v7.5