Lines Matching refs:points
235 typedef SkPoint (*bezierCalculation)(float t, const SkPoint* points);
270 static SkPoint cubicBezierCalculation(float t, const SkPoint* points) { in cubicBezierCalculation() argument
271 float x = cubicCoordinateCalculation(t, points[0].x(), points[1].x(), in cubicBezierCalculation()
272 points[2].x(), points[3].x()); in cubicBezierCalculation()
273 float y = cubicCoordinateCalculation(t, points[0].y(), points[1].y(), in cubicBezierCalculation()
274 points[2].y(), points[3].y()); in cubicBezierCalculation()
283 static SkPoint quadraticBezierCalculation(float t, const SkPoint* points) { in quadraticBezierCalculation() argument
284 float x = quadraticCoordinateCalculation(t, points[0].x(), points[1].x(), points[2].x()); in quadraticBezierCalculation()
285 float y = quadraticCoordinateCalculation(t, points[0].y(), points[1].y(), points[2].y()); in quadraticBezierCalculation()
291 static bool subdividePoints(const SkPoint* points, bezierCalculation bezierFunction, in subdividePoints() argument
298 midPoint = (*bezierFunction)(midT, points); in subdividePoints()
312 static void addBezier(const SkPoint* points, in addBezier() argument
318 tToPoint[0] = (*bezierFunction)(0, points); in addBezier()
319 tToPoint[1] = (*bezierFunction)(1, points); in addBezier()
329 needsSubdivision = subdividePoints(points, bezierFunction, iter->first, in addBezier()
334 needsSubdivision = subdividePoints(points, bezierFunction, iter->first, in addBezier()
356 const SkPoint* points, std::vector<SkPoint>& segmentPoints, in createVerbSegments() argument
360 addMove(segmentPoints, lengths, points[0]); in createVerbSegments()
363 addLine(segmentPoints, lengths, points[0]); in createVerbSegments()
366 addLine(segmentPoints, lengths, points[1]); in createVerbSegments()
369 addBezier(points, quadraticBezierCalculation, segmentPoints, lengths, in createVerbSegments()
373 addBezier(points, cubicBezierCalculation, segmentPoints, lengths, in createVerbSegments()
379 points, pathIter.conicWeight(), errorConic); in createVerbSegments()
414 SkPoint points[4]; in approximate() local
420 while ((verb = pathIter.next(points)) != SkPath::kDone_Verb) { in approximate()
421 createVerbSegments(pathIter, verb, points, segmentPoints, lengths, in approximate()