quaternionIsClose
quaternionIsClose(
q1,q2,tolerance):boolean
Defined in: quaternion/quaternion.ts:50
Component-wise approximate equality.
Not transitive, so it is not an equality in the sense a Set or Map needs,
and never a basis for ordering — use quaternionEquals there. Like the
exact form it compares components, so q and -q are not close even though
they denote the same rotation; compare |quaternionDot(q1, q2)| against 1
to test the rotations instead.
Parameters
Section titled “Parameters”tolerance
Section titled “tolerance”IsCloseToOptions
Returns
Section titled “Returns”boolean