Home
last modified time | relevance | path

Searched refs:normalizeRadians (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DMathHelperTest.java23 import static com.android.server.uwb.correction.math.MathHelper.normalizeRadians;
74 assertClose(normalizeRadians((float) toRadians(5.0f)), toRadians(5)); in testNormalizeRadians()
75 assertClose(normalizeRadians((float) toRadians(-5.0f)), toRadians(-5)); in testNormalizeRadians()
76 assertClose(normalizeRadians((float) toRadians(-350.0f)), toRadians(10)); in testNormalizeRadians()
77 assertClose(normalizeRadians((float) toRadians(350.0f)), toRadians(-10)); in testNormalizeRadians()
78 assertClose(normalizeRadians((float) toRadians(170.0f)), toRadians(170)); in testNormalizeRadians()
79 assertClose(normalizeRadians((float) toRadians(-170.0f)), toRadians(-170)); in testNormalizeRadians()
80 assertClose(normalizeRadians((float) toRadians(-190.0f)), toRadians(170)); in testNormalizeRadians()
81 assertClose(normalizeRadians((float) toRadians(190.0f)), toRadians(-170)); in testNormalizeRadians()
82 assertClose(normalizeRadians((float) toRadians(-428.0f)), toRadians(-68)); in testNormalizeRadians()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/
DMedAvgRotationFilter.java19 import static com.android.server.uwb.correction.math.MathHelper.normalizeRadians;
56 result.value = MathHelper.normalizeRadians(result.value); in averageSamples()
66 super.remap(v -> MathHelper.normalizeRadians(selector.run(v))); in remap()
89 float lowestAngle = normalizeRadians(avgAngle - F_PI); in sortSamples()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/pose/
DGyroPoseSource.java123 mAbsoluteYaw = MathHelper.normalizeRadians(mAbsoluteYaw + yaw); in onSensorChanged()
124 mAbsolutePitch = MathHelper.normalizeRadians(mAbsolutePitch + pitch); in onSensorChanged()
125 mAbsoluteRoll = MathHelper.normalizeRadians(mAbsoluteRoll + roll); in onSensorChanged()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/primers/
DBackAzimuthPrimerTest.java20 import static com.android.server.uwb.correction.math.MathHelper.normalizeRadians;
84 float poseAngle = normalizeRadians((float) toRadians(ang)); in simulateRotation()
85 float azimuth = MathHelper.normalizeRadians(poseAngle - (float) toRadians(mTagAngle)); in simulateRotation()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/
DBackAzimuthPrimer.java21 import static com.android.server.uwb.correction.math.MathHelper.normalizeRadians;
193 normalizeRadians(abs(normalTheory.azimuth - mLastInput.azimuth)); in prime()
196 float normalDifference = abs(normalizeRadians(normalTheory.azimuth - normalInput.azimuth)); in prime()
197 float mirrorDifference = abs(normalizeRadians(mirrorTheory.azimuth - mirrorInput.azimuth)); in prime()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DAoaVector.java78 elevation = MathHelper.normalizeRadians(elevation); in AoaVector()
92 azimuth = MathHelper.normalizeRadians(azimuth); in AoaVector()
DSphericalVector.java66 elevation = MathHelper.normalizeRadians(elevation); in SphericalVector()
80 azimuth = MathHelper.normalizeRadians(azimuth); in SphericalVector()
DMathHelper.java71 public static float normalizeRadians(float rad) { in normalizeRadians() method in MathHelper