Lines Matching refs:poly
10 static bool is_convex(const SkTDArray<SkPoint>& poly) {
11 if (poly.count() < 3) {
15 SkVector v0 = poly[0] - poly[poly.count() - 1];
16 SkVector v1 = poly[1] - poly[poly.count() - 1];
19 for (int i = 0; i < poly.count()-1; ++i) {
21 int k = (i + 2) % poly.count();
23 SkVector v0 = poly[j] - poly[i];
24 SkVector v1 = poly[k] - poly[i];