Home
last modified time | relevance | path

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

/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DQuaternion.java349 Vector3 rotationAxis = Vector3.cross(new Vector3(0, 0, 1), start); in rotationBetweenVectors() local
350 if (rotationAxis.lengthSquared() < 0.01f) { // bad luck, they were parallel, try again! in rotationBetweenVectors()
351 rotationAxis = Vector3.cross(new Vector3(1, 0, 0), start); in rotationBetweenVectors()
354 return axisAngle(rotationAxis, F_PI); in rotationBetweenVectors()
357 Vector3 rotationAxis = Vector3.cross(start, end); in rotationBetweenVectors() local
358 return new Quaternion(rotationAxis.x, rotationAxis.y, rotationAxis.z, 1.0f + cosTheta); in rotationBetweenVectors()