sanitizeDegreesInt static method
- int degrees
Sanitizes a degree measure as an integer.
Returns a degree measure between 0 (inclusive) and 360 (exclusive).
Implementation
static int sanitizeDegreesInt(int degrees) {
degrees = degrees % 360;
if (degrees < 0) {
degrees = degrees + 360;
}
return degrees;
}