Searched refs:centroid (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | VariationalKMeansQuantizer.java | 118 float[] centroid = mean.getCentroid(); in quantize() local 120 centroid[0] * 360f, in quantize() 121 centroid[1], in quantize() 122 centroid[2] in quantize()
|
/frameworks/base/libs/hwui/ |
D | SpotShadow.cpp | 779 const Vector2& centroid, Vector2* polyToCentroid) { in genPolyToCentroid() argument 781 polyToCentroid[j] = poly2d[j] - centroid; in genPolyToCentroid() 800 inline Vector2 getCloserVertex(const Vector2& umbraVertex, const Vector2& centroid, in getCloserVertex() argument 803 Vector2 umbraToCentroid = umbraVertex - centroid; in getCloserVertex() 814 float distanceToIntersectPoly = rayIntersectPoints(centroid, dx, dy, in getCloserVertex() 823 closerVertex.x = centroid.x + dx * distanceToIntersectPoly; in getCloserVertex() 824 closerVertex.y = centroid.y + dy * distanceToIntersectPoly; in getCloserVertex() 838 const Vector2& centroid) { in generateTriangleStrip() argument 849 if (testPointInsidePolygon(centroid, poly2d, polyLength)) { in generateTriangleStrip() 960 bool isPositiveCross = genPolyToCentroid(poly2d, polyLength, centroid, polyToCentroid); in generateTriangleStrip() [all …]
|
D | ShadowTessellator.cpp | 141 Vector2 centroid = poly[0]; in centroid2d() local 143 centroid = (Vector2){static_cast<float>(sumx / (3 * area)), in centroid2d() 148 return centroid; in centroid2d()
|
D | AmbientShadow.cpp | 83 const Vector3& secondVertex, const Vector3& centroid) { in getEdgeExtraAndUpdateSpike() argument 84 Vector2 secondSpike = {secondVertex.x - centroid.x, secondVertex.y - centroid.y}; in getEdgeExtraAndUpdateSpike()
|
D | SpotShadow.h | 61 const Vector3* poly, int polyLength, VertexBuffer& retstrips, const Vector2& centroid);
|
D | TessellationCache.cpp | 238 Vector2 centroid = ShadowTessellator::centroid2d( in tessellateShadows() local 241 Vector3 centroid3d = {centroid.x, centroid.y, 0}; in tessellateShadows()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 499 … private static OrientedBoundingBox computeOrientedBoundingBox(float[] points, float[] centroid) { in computeOrientedBoundingBox() argument 500 translate(points, -centroid[0], -centroid[1]); in computeOrientedBoundingBox() 534 …return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - m… in computeOrientedBoundingBox()
|
/frameworks/base/core/java/com/android/internal/ml/clustering/ |
D | KMeans.java | 225 public Mean(float ...centroid) { in Mean() argument 226 mCentroid = centroid; in Mean()
|