wrap180 method

double wrap180()

Implementation

double wrap180() {
  if (0 <= this && this < 180) {
    return this;
  }
  return (this + 540) % 360 - 180;
}