angleTo method

double angleTo(
  1. Quaternion q
)

Implementation

double angleTo(Quaternion q) {
  return 2 * math.acos(MathUtils.clamp(dot(q), -1, 1).abs());
}