| Vector3DAreNumericallyEqual Method (Vector3D, Vector3D, Double) |
Determines whether two vectors are equal (regarding a specific tolerance).
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static bool AreNumericallyEqual(
Vector3D vector1,
Vector3D vector2,
double epsilon
)
Public Shared Function AreNumericallyEqual (
vector1 As Vector3D,
vector2 As Vector3D,
epsilon As Double
) As Boolean
public:
static bool AreNumericallyEqual(
Vector3D vector1,
Vector3D vector2,
double epsilon
)
static member AreNumericallyEqual :
vector1 : Vector3D *
vector2 : Vector3D *
epsilon : float -> bool
Parameters
- vector1
- Type: DigitalRune.Mathematics.AlgebraVector3D
The first vector. - vector2
- Type: DigitalRune.Mathematics.AlgebraVector3D
The second vector. - epsilon
- Type: SystemDouble
The tolerance value.
Return Value
Type:
Boolean if the vectors are equal (within the tolerance
epsilon); otherwise,
.
Remarks
The two vectors are compared component-wise. If the differences of the components are less
than epsilon the vectors are considered as being equal.
See Also