Graphmath.Quatern.equal

You're seeing just the function equal, go back to Graphmath.Quatern module for more information.

Specs

equal(quatern(), quatern()) :: boolean()

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.

Link to this function

equal(a, b, eps)

Specs

equal(quatern(), quatern(), float()) :: boolean()

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.