Searched refs:polygon (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/
H A DShadowTessellator.cpp145 * Calculate the centroid of a 2d polygon.
147 * @param poly The polygon, which is represented in a Vector2 array.
148 * @param polyLength The length of the polygon in terms of number of vertices.
149 * @return the centroid of the polygon.
191 * Test whether the polygon is order in clockwise.
193 * @param polygon the polygon as a Vector2 array
194 * @param len the number of points of the polygon
196 bool ShadowTessellator::isClockwise(const Vector2* polygon, int len) { argument
197 if (len < 2 || polygon
245 reverseVertexArray(Vertex* polygon, int len) argument
[all...]
H A DSpotShadow.h56 static void makeClockwise(Vector2* polygon, int len);
57 static void reverse(Vector2* polygon, int len);
64 static bool testConvex(const Vector2* polygon, int polygonLength,
H A DShadowTessellator.h83 static bool isClockwise(const Vector2* polygon, int len);
99 * @param polygon The vertex array to be reversed.
102 static void reverseVertexArray(Vertex* polygon, int len);
H A DSpotShadow.cpp26 // When the polygon is about 90 vertices, the penumbra + umbra can reach 270 rays.
27 // That is consider pretty fine tessllated polygon so far.
40 // For the whole polygon, the sum of all the deltas b/t normals is 2 * M_PI,
66 * For each polygon's vertex, the light center will project it to the receiver
141 * @param pointsLength the number of vertices of the polygon.
151 * @param pointsLength the number of vertices of the polygon.
153 * @return the number of points in the polygon 0 if no intersection
229 * @param polyLength The number of vertices of the polygon.
301 * Test whether a point is inside the polygon.
304 * @param poly the polygon
333 makeClockwise(Vector2* polygon, int len) argument
348 reverse(Vector2* polygon, int len) argument
650 getClosestUmbraIndex(const Vector2& pivot, const Vector2* polygon, int polygonLength) argument
1079 testConvex(const Vector2* polygon, int polygonLength, const char* name) argument
[all...]

Completed in 50 milliseconds