normalizedRotation property

double get normalizedRotation

Rotation normalised to (-π, π].

Implementation

double get normalizedRotation {
  var r = rotation % (2 * math.pi);
  if (r > math.pi) {
    r -= 2 * math.pi;
  }
  return r;
}