Home
last modified time | relevance | path

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

/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DQuaternion.java134 float traceRoot = (float) sqrt(trace + 1); // |traceRoot|>=1 ... in fromMatrix() local
135 w = 0.5f * traceRoot; in fromMatrix()
136 traceRoot = 0.5f / traceRoot; // so this division isn't bad in fromMatrix()
137 x = (matrix.data[6] - matrix.data[9]) * traceRoot; in fromMatrix()
138 y = (matrix.data[8] - matrix.data[2]) * traceRoot; in fromMatrix()
139 z = (matrix.data[1] - matrix.data[4]) * traceRoot; in fromMatrix()
142 float traceRoot = in fromMatrix() local
145 x = traceRoot * 0.5f; // |x| >= .5 in fromMatrix()
146 traceRoot = 0.5f / traceRoot; in fromMatrix()
147 y = (matrix.data[1] + matrix.data[4]) * traceRoot; in fromMatrix()
[all …]