wrap360 method

double wrap360()

Implementation

double wrap360() {
  if (0 <= this && this < 360) {
    return this;
  }
  return (this % 360 + 360) % 360;
}