Returns True if q1 and q2 give near equivalent transforms
q1 may be nearly numerically equal to q2, or nearly equal to q2 * -1 (becuase a quaternion multiplied by -1 gives the same transform).
Parameters : | q1 : 4 element sequence
q2 : 4 element sequence
|
---|---|
Returns : | equiv : bool
|
Examples
>>> q1 = [1, 0, 0, 0]
>>> nearly_equivalent(q1, [0, 1, 0, 0])
False
>>> nearly_equivalent(q1, [1, 0, 0, 0])
True
>>> nearly_equivalent(q1, [-1, 0, 0, 0])
True