sameRotation method

bool sameRotation(
  1. Quaternion other, [
  2. double epsilon = 1e-9
])

Whether this and other are the same rotation within epsilon (q and -q count as the same).

Implementation

bool sameRotation(Quaternion other, [double epsilon = 1e-9]) =>
    _close(other.x, other.y, other.z, other.w, epsilon);