| QuaternionDAreNumericallyEqual Method (QuaternionD, QuaternionD, Double) |
Tests if two quaternions are equal (with 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(
QuaternionD q1,
QuaternionD q2,
double epsilon
)
Public Shared Function AreNumericallyEqual (
q1 As QuaternionD,
q2 As QuaternionD,
epsilon As Double
) As Boolean
public:
static bool AreNumericallyEqual(
QuaternionD q1,
QuaternionD q2,
double epsilon
)
static member AreNumericallyEqual :
q1 : QuaternionD *
q2 : QuaternionD *
epsilon : float -> bool
Parameters
- q1
- Type: DigitalRune.Mathematics.AlgebraQuaternionD
The first quaternion. - q2
- Type: DigitalRune.Mathematics.AlgebraQuaternionD
The second quaternion. - epsilon
- Type: SystemDouble
The tolerance value.
Return Value
Type:
Boolean if the quaternions are equal within the tolerance
epsilon; otherwise
.
Remarks
For the test the components of the quaternions are compared.
See Also