wrap90 method

dynamic wrap90(
  1. dynamic degrees
)

Implementation

wrap90(var degrees) {
  if (-90 <= degrees && degrees <= 90)
    return degrees;
  return (((degrees%360 + 270)%360 - 180).abs - 90);
}