Searched refs:sqDist (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/Internal/src/com/android/internal/ml/clustering/ |
D | KMeansTest.java | 88 float sqDist = (float) (Math.pow(a[0] - b[0], 2) + Math.pow(a[1] - b[1], 2)); in sqDistanceTest() local 90 assertEquals("Squared distance not valid", mKMeans.sqDistance(a, b), sqDist, EPS); in sqDistanceTest()
|
/frameworks/native/opengl/libagl/ |
D | light.cpp | 379 GLfixed sqDist = 0x10000; in lightVertex() local 392 sqDist = dot3(d.v, d.v); in lightVertex() 393 vscale3(d.v, d.v, gglSqrtRecipx(sqDist)); in lightVertex() 432 s = gglMulAddx(sqDist, l.attenuation[2], l.attenuation[0]); in lightVertex() 434 s = gglMulAddx(gglSqrtx(sqDist), l.attenuation[1], s); in lightVertex()
|