Home
last modified time | relevance | path

Searched refs:lengthSquared (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DVector3Tests.java30 assertThat(Vector3.ORIGIN.normalized().lengthSquared()).isEqualTo(0); in testNorm()
43 .lengthSquared() in testClamp()
51 .lengthSquared() in testClamp()
59 .lengthSquared() in testClamp()
66 assertThat(n.add(n.inverted()).lengthSquared()).isEqualTo(0); in testInverted()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DVector3.java70 float normSquared = lengthSquared(); in normalized()
138 public float lengthSquared() { in lengthSquared() method in Vector3
148 return (float) sqrt(lengthSquared()); in length()
DQuaternion.java350 if (rotationAxis.lengthSquared() < 0.01f) { // bad luck, they were parallel, try again! in rotationBetweenVectors()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCbGeoUtils.java393 final double lengthSquared = getLength() * getLength(); in distance() local
394 if (lengthSquared == 0.0) { in distance()
403 double magnitude = dot / lengthSquared; in distance()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/pose/
DIntegPoseSource.java152 if (mPosition.lengthSquared() > POS_RESET_DISTANCE_METERS * POS_RESET_DISTANCE_METERS) { in onSensorChanged()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/
DUwbFilterEngineTest.java117 assertThat(newPose.translation.lengthSquared()).isEqualTo(0); in poseChanges()