Lines Matching refs:pts
50 SkPoint pts[3]; in test_evalquadat() local
52 pts[j].set(rand.nextSScalar1() * 100, rand.nextSScalar1() * 100); in test_evalquadat()
58 SkEvalQuadAt(pts, t, &r0); in test_evalquadat()
59 SkPoint r1 = SkEvalQuadAt(pts, t); in test_evalquadat()
63 SkEvalQuadAt(pts, t, nullptr, &v0); in test_evalquadat()
64 SkVector v1 = SkEvalQuadTangentAt(pts, t); in test_evalquadat()
89 SkPoint pts[3]; in test_conic() local
91 pts[j].set(rand.nextSScalar1() * 100, rand.nextSScalar1() * 100); in test_conic()
95 SkConic conic(pts, w); in test_conic()
109 SkPoint pts[] = { in test_quad_tangents() local
114 int count = (int) SK_ARRAY_COUNT(pts) / 3; in test_quad_tangents()
116 SkConic conic(&pts[index * 3], 0.707f); in test_quad_tangents()
117 SkVector start = SkEvalQuadTangentAt(&pts[index * 3], 0); in test_quad_tangents()
118 SkVector mid = SkEvalQuadTangentAt(&pts[index * 3], .5f); in test_quad_tangents()
119 SkVector end = SkEvalQuadTangentAt(&pts[index * 3], 1); in test_quad_tangents()
129 SkPoint pts[] = { in test_conic_tangents() local
134 int count = (int) SK_ARRAY_COUNT(pts) / 3; in test_conic_tangents()
136 SkConic conic(&pts[index * 3], 0.707f); in test_conic_tangents()
149 SkPoint pts[] = { in test_cubic_tangents() local
154 int count = (int) SK_ARRAY_COUNT(pts) / 4; in test_cubic_tangents()
156 SkConic conic(&pts[index * 3], 0.707f); in test_cubic_tangents()
158 SkEvalCubicAt(&pts[index * 4], 0, nullptr, &start, nullptr); in test_cubic_tangents()
159 SkEvalCubicAt(&pts[index * 4], .5f, nullptr, &mid, nullptr); in test_cubic_tangents()
160 SkEvalCubicAt(&pts[index * 4], 1, nullptr, &end, nullptr); in test_cubic_tangents()
170 SkPoint pts[3], dst[5]; in DEF_TEST() local
172 pts[0].set(0, 0); in DEF_TEST()
173 pts[1].set(100, 50); in DEF_TEST()
174 pts[2].set(0, 100); in DEF_TEST()
176 int count = SkChopQuadAtMaxCurvature(pts, dst); in DEF_TEST()
179 pts[0].set(0, 0); in DEF_TEST()
180 pts[1].set(3, 0); in DEF_TEST()
181 pts[2].set(3, 3); in DEF_TEST()
182 SkConvertQuadToCubic(pts, dst); in DEF_TEST()