Home
last modified time | relevance | path

Searched refs:MathHelper (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DVector3.java75 float norm = MathHelper.rsqrt(normSquared); in normalized()
159 float clampedX = MathHelper.clamp(x, min.x, max.x); in clamp()
160 float clampedY = MathHelper.clamp(y, min.y, max.y); in clamp()
161 float clampedZ = MathHelper.clamp(z, min.z, max.z); in clamp()
184 cos = MathHelper.clamp(cos, -1.0f, 1.0f); in angleBetweenVectors()
202 /*x=*/ MathHelper.lerp(start.x, end.x, ratio), in lerp()
203 /*y=*/ MathHelper.lerp(start.y, end.y, ratio), in lerp()
204 /*z=*/ MathHelper.lerp(start.z, end.z, ratio)); in lerp()
DAoaVector.java18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
78 elevation = MathHelper.normalizeRadians(elevation); in AoaVector()
92 azimuth = MathHelper.normalizeRadians(azimuth); in AoaVector()
DSphericalVector.java18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
66 elevation = MathHelper.normalizeRadians(elevation); in SphericalVector()
80 azimuth = MathHelper.normalizeRadians(azimuth); in SphericalVector()
DMathHelper.java26 public final class MathHelper { class
75 private MathHelper() {} in MathHelper() method in MathHelper
DQuaternion.java18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
279 MathHelper.lerp(x, q.x, t), in lerp()
280 MathHelper.lerp(y, q.y, t), in lerp()
281 MathHelper.lerp(z, q.z, t), in lerp()
282 MathHelper.lerp(w, q.w, t) in lerp()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/
DMedAvgRotationFilter.java18 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
19 import static com.android.server.uwb.correction.math.MathHelper.normalizeRadians;
25 import com.android.server.uwb.correction.math.MathHelper;
56 result.value = MathHelper.normalizeRadians(result.value); in averageSamples()
66 super.remap(v -> MathHelper.normalizeRadians(selector.run(v))); in remap()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DMathHelperTest.java20 import static com.android.server.uwb.correction.math.MathHelper.clamp;
21 import static com.android.server.uwb.correction.math.MathHelper.lerp;
22 import static com.android.server.uwb.correction.math.MathHelper.normalizeDegrees;
23 import static com.android.server.uwb.correction.math.MathHelper.normalizeRadians;
24 import static com.android.server.uwb.correction.math.MathHelper.rsqrt;
DVector3Test.java19 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
20 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
DQuaternionTest.java20 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
DMatrixTest.java18 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
/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;
19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
20 import static com.android.server.uwb.correction.math.MathHelper.normalizeRadians;
30 import com.android.server.uwb.correction.math.MathHelper;
85 float azimuth = MathHelper.normalizeRadians(poseAngle - (float) toRadians(mTagAngle)); in simulateRotation()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/pose/
DGyroPoseSource.java26 import com.android.server.uwb.correction.math.MathHelper;
123 mAbsoluteYaw = MathHelper.normalizeRadians(mAbsoluteYaw + yaw); in onSensorChanged()
124 mAbsolutePitch = MathHelper.normalizeRadians(mAbsolutePitch + pitch); in onSensorChanged()
125 mAbsoluteRoll = MathHelper.normalizeRadians(mAbsoluteRoll + roll); in onSensorChanged()
DSixDofPoseSource.java18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
DRotationPoseSource.java18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
DIntegPoseSource.java18 import static com.android.server.uwb.correction.math.MathHelper.F_HALF_PI;
/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;
19 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
20 import static com.android.server.uwb.correction.math.MathHelper.MS_PER_SEC;
21 import static com.android.server.uwb.correction.math.MathHelper.normalizeRadians;
36 import com.android.server.uwb.correction.math.MathHelper;
148 float timeScale = (float) MathHelper.MS_PER_SEC / timeDeltaMs; in prime()
DFovPrimer.java18 import static com.android.server.uwb.correction.math.MathHelper.F_PI;
/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;
20 import static com.android.server.uwb.correction.math.MathHelper.F_PI;