Graphmath.Quatern.equal
equal
, go back to Graphmath.Quatern module for more information.
equal(a, b)
Specs
equal(a,b)
checks to see if two orientation quaternions a and b are equivalent.
a
is the first quaternion.
b
is the second quaternion.
It returns true if the quaternions represent the same orientation.
This function expects normalized quaternions.
Note that orientation quaternions exist where a == -b...that is, where the axes are equivalent but the angle is opposite in sign.
equal(a, b, eps)
Specs
equal(a,b,eps)
checks to see if two orientation quaternions a and b are equivalent up to some epsilon
a
is the first quaternion.
b
is the second quaternion.
eps
is the epsilon, on the interval [0,1].
It returns true if the quaternions represent the same orientation.
This function expects normalized quaternions.
Note that orientation quaternions exist where a == -b...that is, where the axes are equivalent but the angle is opposite in sign.