Home | History | Annotate | Download | only in hwui

Lines Matching refs:Vector2

120  * @param poly The polygon, which is represented in a Vector2 array.
124 Vector2 ShadowTessellator::centroid2d(const Vector2* poly, int polyLength) {
141 Vector2 centroid = poly[0];
143 centroid = (Vector2){static_cast<float>(sumx / (3 * area)),
152 Vector2 ShadowTessellator::calculateNormal(const Vector2& p1, const Vector2& p2) {
153 Vector2 result = p2 - p1;
164 int ShadowTessellator::getExtraVertexNumber(const Vector2& vector1,
165 const Vector2& vector2, float divisor) {
167 if (vector1.lengthSquared() == 0 || vector2.lengthSquared() == 0) {
176 float dotProduct = vector1.dot(vector2);