Home | History | Annotate | Download | only in hwui

Lines Matching refs:Vector2

119  * @param poly The polygon, which is represented in a Vector2 array.
123 Vector2 ShadowTessellator::centroid2d(const Vector2* poly, int polyLength) {
140 Vector2 centroid = poly[0];
142 centroid = (Vector2){static_cast<float>(sumx / (3 * area)),
151 Vector2 ShadowTessellator::calculateNormal(const Vector2& p1, const Vector2& p2) {
152 Vector2 result = p2 - p1;
163 int ShadowTessellator::getExtraVertexNumber(const Vector2& vector1,
164 const Vector2& vector2, float divisor) {
166 if (vector1.lengthSquared() == 0 || vector2.lengthSquared() == 0) {
175 float dotProduct = vector1.dot(vector2);