Click or drag to resize
DigitalRuneQuaternionD.AreNumericallyEqual Method (QuaternionD, QuaternionD, Double)
Tests if two quaternions are equal (with a specific tolerance).

Namespace: DigitalRune.Mathematics.Algebra
Assembly: 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
)

Parameters

q1
Type: DigitalRune.Mathematics.Algebra.QuaternionD
The first quaternion.
q2
Type: DigitalRune.Mathematics.Algebra.QuaternionD
The second quaternion.
epsilon
Type: System.Double
The tolerance value.

Return Value

Type: Boolean
true if the quaternions are equal within the tolerance epsilon; otherwise false.
Remarks
For the test the components of the quaternions are compared.
See Also