Home
last modified time | relevance | path

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

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/shadowutil/
DSpotShadow.java91 double areaOfTriangle = Math.sqrt(c0 * c0 + c1 * c1 + c2 * c2); in centroid3d() local
92 area += areaOfTriangle; in centroid3d()
93 cx += areaOfTriangle * (poly[i * 3 + 0] + poly[k * 3 + 0] + poly[0 * 3 + 0]); in centroid3d()
94 cy += areaOfTriangle * (poly[i * 3 + 1] + poly[k * 3 + 1] + poly[0 * 3 + 1]); in centroid3d()
95 cz += areaOfTriangle * (poly[i * 3 + 2] + poly[k * 3 + 2] + poly[0 * 3 + 2]); in centroid3d()