Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DSensorSynchronizationTestActivity.java151 protected double angleBetweenVecsDegrees(float[] vec1, float[] vec2) { in angleBetweenVecsDegrees() argument
152 return Math.toDegrees(Math.acos((vec1[0] * vec2[0] + vec1[1] * vec2[1] + vec1[2] * vec2[2]) in angleBetweenVecsDegrees()
153 / normVec(vec1) / normVec(vec2))); in angleBetweenVecsDegrees()
156 protected double normVec(float[] vec1) { in normVec() argument
157 return Math.sqrt(vec1[0] * vec1[0] + vec1[1] * vec1[1] + vec1[2] * vec1[2]); in normVec()