Searched refs:cosine (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
H A DColorMatrix.java122 float cosine = FloatMath.cos(radians);
127 mArray[6] = mArray[12] = cosine;
133 mArray[0] = mArray[12] = cosine;
139 mArray[0] = mArray[6] = cosine;
/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java418 * Calculates the cosine distance between two instances.
434 * Calculates the "minimum" cosine distance between two instances.
455 final double cosine = Math.cos(angle);
456 final double sine = cosine * tan;
457 return (float) Math.acos(a * cosine + b * sine);
/frameworks/base/services/input/
H A DInputReader.cpp5002 // the angle betweeen them is near zero and the cosine of the angle
5011 float cosine = dot / (dist1 * dist2); // denominator always > 0 local
5012 if (cosine >= mConfig.pointerGestureSwipeTransitionAngleCosine) {
5017 "cosine %0.3f >= %0.3f",
5020 cosine, mConfig.pointerGestureSwipeTransitionAngleCosine);
5028 "cosine %0.3f < %0.3f",
5031 cosine, mConfig.pointerGestureSwipeTransitionAngleCosine);

Completed in 848 milliseconds