Searched defs:poly1 (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/shadowutil/
H A DSpotShadow.java179 * calculates the intersection of poly1 with poly2 and put in poly2
180 * @param poly1 The flatten 2d coordinates of polygon
181 * @param poly1length The vertices number of poly1
186 private static int intersection(@NonNull float[] poly1, int poly1length, @NonNull float[] poly2, argument
188 makeClockwise(poly1, poly1length);
194 if (pointInsidePolygon(poly1[i * 2 + 0], poly1[i * 2 + 1], poly2, poly2length)) {
195 poly[count * 2 + 0] = poly1[i * 2 + 0];
196 poly[count * 2 + 1] = poly1[i * 2 + 1];
203 if (pointInsidePolygon(poly2[i * 2 + 0], poly2[i * 2 + 1], poly1, poly1lengt
[all...]
/frameworks/base/libs/hwui/
H A DSpotShadow.cpp1077 void SpotShadow::testIntersection(const Vector2* poly1, int poly1Length, argument
1084 updateBound(poly1[i], lowerBound, upperBound);
1102 if (!testPointInsidePolygon(testPoint, poly1, poly1Length)) {
1105 " not in the poly1",
1125 dumpPolygon(poly1, poly1Length, "poly 1");

Completed in 1107 milliseconds