Home
last modified time | relevance | path

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/
DQuaternionTest.java20 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()
DVector3Test.java19 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/
DAoaVector.java18 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()
DSphericalVector.java18 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()
DMathHelper.java28 public static final float F_HALF_PI = (float) (PI / 2); field in MathHelper
DQuaternion.java18 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/
DMedAvgRotationFilterFilterTest.java19 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/
DBackAzimuthPrimer.java18 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/
DSixDofPoseSource.java18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
54 private final Quaternion mRotator = Quaternion.yawPitchRoll(0, -F_HALF_PI, 0);
DRotationPoseSource.java18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
52 private final Quaternion mRotator = Quaternion.yawPitchRoll(0, -F_HALF_PI, 0);
DIntegPoseSource.java18 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/
DBackAzimuthPrimerTest.java18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
88 if (Math.abs(azimuth) < F_HALF_PI) { in simulateRotation()