Home
last modified time | relevance | path

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

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DAoaVectorTest.java119 assertThat(AoaVector.fromCartesian(0, 0, 0).distance).isEqualTo(0); in cartesian()
123 AoaVector.fromCartesian(new Vector3(0, 0, -1)), in cartesian()
129 AoaVector.fromCartesian(new Vector3(-1, 0, 0)), in cartesian()
134 AoaVector gimbalLock = AoaVector.fromCartesian(new Vector3(0, 1, 0)); in cartesian()
142 AoaVector.fromCartesian(new Vector3(-1, 0, 1)), in cartesian()
147 assertClose(AoaVector.fromCartesian(targ).toCartesian(), targ); in cartesian()
DSphericalVectorTest.java93 assertThat(SphericalVector.fromCartesian(0, 0, 0).distance).isEqualTo(0); in cartesian()
97 SphericalVector.fromCartesian(new Vector3(0, 0, -1)), in cartesian()
103 SphericalVector.fromCartesian(new Vector3(-1, 0, 0)), in cartesian()
108 SphericalVector gimbalLock = SphericalVector.fromCartesian(new Vector3(0, 1, 0)); in cartesian()
116 SphericalVector.fromCartesian(new Vector3(-1, 0, 1)), in cartesian()
121 assertClose(SphericalVector.fromCartesian(targ).toCartesian(), targ); in cartesian()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DAoaVector.java171 public static AoaVector fromCartesian(@NonNull Vector3 position) { in fromCartesian() method in AoaVector
173 return fromCartesian(position.x, position.y, position.z); in fromCartesian()
186 public static AoaVector fromCartesian(float x, float y, float z) { in fromCartesian() method in AoaVector
DSphericalVector.java124 public static SphericalVector fromCartesian(@NonNull Vector3 position) { in fromCartesian() method in SphericalVector
126 return fromCartesian(position.x, position.y, position.z); in fromCartesian()
139 public static SphericalVector fromCartesian(float x, float y, float z) { in fromCartesian() method in SphericalVector
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/primers/
DFoVPrimerTest.java44 input = SphericalVector.fromCartesian(within).toAnnotated(); in conversionTest()
51 input = SphericalVector.fromCartesian(outside).toAnnotated(); in conversionTest()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/filtering/
DNullPositionFilter.java85 mValue = SphericalVector.fromCartesian(vecFromNewCam).toAnnotated() in updatePose()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/
DPositionFilterImpl.java139 SphericalVector newEstimate = SphericalVector.fromCartesian(vecFromNewCam); in updatePoseFromDelta()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/
DBackAzimuthPrimer.java359 return SphericalVector.fromCartesian(deltaPose.transformPoint(input.toCartesian())); in transformSpherical()