Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/view/math/
DMath3DHelper.java96 double areaOfTriangle = Math.sqrt(c0 * c0 + c1 * c1 + c2 * c2); in centroid3d() local
97 area += areaOfTriangle; in centroid3d()
98 cx += areaOfTriangle * (poly[i * 3 + 0] + poly[k * 3 + 0] + poly[0 * 3 + 0]); in centroid3d()
99 cy += areaOfTriangle * (poly[i * 3 + 1] + poly[k * 3 + 1] + poly[0 * 3 + 1]); in centroid3d()
100 cz += areaOfTriangle * (poly[i * 3 + 2] + poly[k * 3 + 2] + poly[0 * 3 + 2]); in centroid3d()