Searched refs:F_HALF_PI (Results 1 – 12 of 12) sorted by relevance
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/ |
D | QuaternionTest.java | 20 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 45 quaternion = Quaternion.yawPitchRoll(F_HALF_PI, 0, 0); in testYawPitchRoll() 48 quaternion = Quaternion.yawPitchRoll(0, F_HALF_PI, 0); in testYawPitchRoll() 51 quaternion = Quaternion.yawPitchRoll(0, 0, F_HALF_PI); in testYawPitchRoll()
|
D | Vector3Test.java | 19 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 61 assertEquals(F_HALF_PI, angle, TOLERANCE); in testAngleBetweenVectors() 75 Vector3 v2 = new Vector3(0, F_HALF_PI, 0); in testToDegrees()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/ |
D | AoaVector.java | 18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 80 if (ae > F_HALF_PI) { in AoaVector() 95 boolean backFacing = abs(azimuth) > F_HALF_PI; in AoaVector() 100 float scaleFactor = angleSum / (F_HALF_PI); in AoaVector() 207 boolean mirrored = abs(azimuth) > F_HALF_PI; in fromSphericalVector() 237 if (abs(azimuth) < F_HALF_PI) { in toCartesian()
|
D | SphericalVector.java | 18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 68 if (ae > F_HALF_PI) { in SphericalVector() 157 boolean mirrored = abs(azimuth) > F_HALF_PI; in fromAoAVector() 193 if (abs(azimuth) <= F_HALF_PI) { in toCartesian()
|
D | MathHelper.java | 28 public static final float F_HALF_PI = (float) (PI / 2); field in MathHelper
|
D | Quaternion.java | 18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 428 return new Vector3((float) (+2 * atan2(z, w)), +F_HALF_PI, 0); in toYawPitchRoll() 433 return new Vector3((float) (-2 * atan2(z, w)), -F_HALF_PI, 0); in toYawPitchRoll()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/filtering/ |
D | MedAvgRotationFilterFilterTest.java | 19 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 49 filter.remap(b -> b + F_HALF_PI); in remapTest() 54 toRadians((175 + (360 - 175) + 5) / 3f) + F_HALF_PI - 2 * F_PI in remapTest()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/ |
D | BackAzimuthPrimer.java | 18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 152 if (abs(prediction.azimuth) > F_HALF_PI in prime() 153 && abs(mLastAzimuthPrediction) <= F_HALF_PI) { in prime() 157 } else if (abs(prediction.azimuth) <= F_HALF_PI in prime() 158 && abs(mLastAzimuthPrediction) > F_HALF_PI) { in prime() 385 if (back == abs(vector.azimuth) < F_HALF_PI) { in forceAzimuth()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/pose/ |
D | SixDofPoseSource.java | 18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 54 private final Quaternion mRotator = Quaternion.yawPitchRoll(0, -F_HALF_PI, 0);
|
D | RotationPoseSource.java | 18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 52 private final Quaternion mRotator = Quaternion.yawPitchRoll(0, -F_HALF_PI, 0);
|
D | IntegPoseSource.java | 18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 76 private final Quaternion mRotator = Quaternion.yawPitchRoll(0, -F_HALF_PI, 0);
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/primers/ |
D | BackAzimuthPrimerTest.java | 18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI; 88 if (Math.abs(azimuth) < F_HALF_PI) { in simulateRotation()
|