Graphmath.Quatern.equal_elements
equal_elements, go back to Graphmath.Quatern module for more information.
equal_elements(a, b)
Specs
equal_elements(a,b) checks to see if two quaternions a and b are element-wise equal.
a is the first quaternion.
b is the second quaternion.
It returns true if the quaternions have the same elements, false otherwise.
This function does not require normalized quaternions.
Note that orientation quaternions exist where a == -b...that is, where the axes are equivalent but the angle is opposite in sign.
In such cases, prefer the equal/2 function.
equal_elements(a, b, eps)
Specs
equal_elements(a,b, eps) checks to see if two quaternions a and b are element-wise equal to some epsilon
a is the first quaternion.
b is the second quaternion.
eps is the float of the epsilon for comparison.
It returns true if the quaternions have the same element-wise values up to and including some epsilon.
This function does not require normalized quaternions.
Note that orientation quaternions exist where a == -b...that is, where the axes are equivalent but the angle is opposite in sign.
In such cases, prefer the equal/3 function.