Searched refs:F_PI (Results 1 – 11 of 11) sorted by relevance
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/ |
D | AoaVector.java | 19 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()
|
D | MathHelper.java | 27 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()
|
D | SphericalVector.java | 19 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()
|
D | Quaternion.java | 19 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/ |
D | FovPrimer.java | 18 import static com.android.server.uwb.correction.math.MathHelper.F_PI; 50 if (fov > F_PI) { in FovPrimer() 51 fov = F_PI; in FovPrimer()
|
D | BackAzimuthPrimer.java | 19 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/ |
D | MedAvgRotationFilter.java | 18 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/ |
D | MedAvgRotationFilterFilterTest.java | 20 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/ |
D | Vector3Test.java | 20 import static com.android.server.uwb.correction.math.MathHelper.F_PI; 76 Vector3 v3 = new Vector3(0, 0, F_PI); in testToDegrees()
|
D | MatrixTest.java | 18 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/ |
D | BackAzimuthPrimerTest.java | 19 import static com.android.server.uwb.correction.math.MathHelper.F_PI; 92 signum(azimuth) * (F_PI - abs(azimuth)), in simulateRotation()
|