7 package com.google.appinventor.components.runtime.util;
32 static float mod(
float dividend,
float quotient) {
33 float result = dividend % quotient;
34 if (result == 0 || Math.signum(dividend) == Math.signum(quotient)) {
37 return result + quotient;
48 return mod(azimuth, 360f);
58 return mod(pitch + 180f, 360f) - 180f;
82 roll = Math.min(roll, 180f);
83 roll = Math.max(roll, -180f);
86 if (roll >= -90 && roll <= 90) {