normalized property
Angle
normalized
Returns an angle with the some direction, but confined to
the interval [0°, 360°)
.
Implementation
Angle get normalized {
if (_storage == 0) {
return Angle.zero();
} else if (_storage > 0) {
return Angle.turns(turns.remainder(1.0));
} else {
return Angle.fullTurn() + Angle.turns(turns.remainder(1.0));
}
}