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

/frameworks/base/libs/hwui/
H A DSpotShadow.cpp627 inline int getClosestUmbraIndex(const Vector2& pivot, const Vector2* polygon, int polygonLength) { argument
634 int offset = polygonLength - 2;
635 for (int i = 0; i < polygonLength; i++) {
636 int currentIndex = (i + offset) % polygonLength;
1060 bool SpotShadow::testConvex(const Vector2* polygon, int polygonLength, argument
1063 for (int i = 0; i < polygonLength; i++) {
1065 Vector2 middle = polygon[(i + 1) % polygonLength];
1066 Vector2 end = polygon[(i + 2) % polygonLength];

Completed in 778 milliseconds