Searched refs:centroid (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/libs/hwui/ |
D | SpotShadow.cpp | 813 const Vector2& centroid, Vector2* polyToCentroid) { in genPolyToCentroid() argument 815 polyToCentroid[j] = poly2d[j] - centroid; in genPolyToCentroid() 834 inline Vector2 getCloserVertex(const Vector2& umbraVertex, const Vector2& centroid, in getCloserVertex() argument 837 Vector2 umbraToCentroid = umbraVertex - centroid; in getCloserVertex() 848 float distanceToIntersectPoly = rayIntersectPoints(centroid, dx, dy, in getCloserVertex() 857 closerVertex.x = centroid.x + dx * distanceToIntersectPoly; in getCloserVertex() 858 closerVertex.y = centroid.y + dy * distanceToIntersectPoly; in getCloserVertex() 872 const Vector2& centroid) { in generateTriangleStrip() argument 883 if (testPointInsidePolygon(centroid, poly2d, polyLength)) { in generateTriangleStrip() 990 bool isPositiveCross = genPolyToCentroid(poly2d, polyLength, centroid, polyToCentroid); in generateTriangleStrip() [all …]
|
D | AmbientShadow.cpp | 95 const Vector3& secondVertex, const Vector3& centroid) { in getEdgeExtraAndUpdateSpike() argument 96 Vector2 secondSpike = {secondVertex.x - centroid.x, secondVertex.y - centroid.y}; in getEdgeExtraAndUpdateSpike()
|
D | ShadowTessellator.cpp | 168 Vector2 centroid = poly[0]; in centroid2d() local 170 centroid = (Vector2){static_cast<float>(sumx / (3 * area)), in centroid2d() 175 return centroid; in centroid2d()
|
D | SpotShadow.h | 61 const Vector3* poly, int polyLength, VertexBuffer& retstrips, const Vector2& centroid);
|
D | TessellationCache.cpp | 243 Vector2 centroid = ShadowTessellator::centroid2d( in tessellateShadows() local 246 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()
|