Home
last modified time | relevance | path

Searched refs:F_PI (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DAoaVector.java19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
83 elevation = (F_PI - ae) * signum(elevation); in AoaVector()
84 azimuth += F_PI; in AoaVector()
88 azimuth += F_PI; // turn 180deg. in AoaVector()
98 float laz = backFacing ? (F_PI * signum(azimuth) - azimuth) : azimuth; in AoaVector()
109 azimuth = backFacing ? (F_PI * signum(azimuth) - laz / scaleFactor) : (azimuth in AoaVector()
195 azimuth = F_PI * signum(azimuth) - azimuth; in fromCartesian()
209 azimuth = F_PI - azimuth; in fromSphericalVector()
217 return new AoaVector(F_PI - (float) az, vec.elevation, vec.distance); in fromSphericalVector()
DMathHelper.java27 public static final float F_PI = (float) PI; field in MathHelper
72 return rad - (F_PI * 2) * (float) ceil((rad - F_PI) / (F_PI * 2)); in normalizeRadians()
DSphericalVector.java19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
71 elevation = (F_PI - ae) * signum(elevation); in SphericalVector()
72 azimuth += F_PI; in SphericalVector()
76 azimuth += F_PI; // turn 180deg. in SphericalVector()
159 azimuth = F_PI - azimuth; in fromAoAVector()
166 return new SphericalVector(F_PI - (float) az, vec.elevation, vec.distance); in fromAoAVector()
DQuaternion.java19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
354 return axisAngle(rotationAxis, F_PI); in rotationBetweenVectors()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/
DFovPrimer.java18 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
50 if (fov > F_PI) { in FovPrimer()
51 fov = F_PI; in FovPrimer()
DBackAzimuthPrimer.java19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
371 signum(vector.azimuth) * (F_PI - abs(vector.azimuth)), in mirrorAzimuth()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/
DMedAvgRotationFilter.java18 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
89 float lowestAngle = normalizeRadians(avgAngle - F_PI); in sortSamples()
96 result.set(index, new Sample(sample.value + 2 * F_PI, sample.timeMs, sample.fom)); in sortSamples()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/filtering/
DMedAvgRotationFilterFilterTest.java20 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
54 toRadians((175 + (360 - 175) + 5) / 3f) + F_HALF_PI - 2 * F_PI in remapTest()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DVector3Test.java20 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
76 Vector3 v3 = new Vector3(0, 0, F_PI); in testToDegrees()
DMatrixTest.java18 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
69 Matrix transform = Matrix.newRotation(Quaternion.axisAngle(new Vector3(0, 1, 0), F_PI)); in transformPoint_rotate180AroundOrthogonalFlipsVector()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/primers/
DBackAzimuthPrimerTest.java19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
92 signum(azimuth) * (F_PI - abs(azimuth)), in simulateRotation()