Lines Matching refs:SkPoint
100 static SkPoint SkMakePoint(SkScalar x, SkScalar y) { in SkMakePoint()
101 SkPoint pt; in SkMakePoint()
106 static SkPoint SkPointInterp(const SkPoint& a, const SkPoint& b, SkScalar t) { in SkPointInterp()
113 static void set_cubic(SkPoint pts[4], SkScalar x0, SkScalar y0, in set_cubic()
115 SkPoint tmp, tmp2; in set_cubic()
145 SkPoint pts[Rows * Cols]; in test_patch()
161 const SkPoint& p0, const SkPoint& p1) { in test_drag()
188 SkPoint pts[Rows * Cols]; in test_drag()
223 SkPoint& pt(int row, int col) { in pt()
233 SkPoint* fPts;
234 SkPoint* fTex; // just points into fPts, not separately allocated
256 fPts = new SkPoint[fCount * 2]; in operator =()
258 memcpy(fPts, src.fPts, fCount * 2 * sizeof(SkPoint)); in operator =()
278 fPts = new SkPoint[fCount * 2]; in init()
285 SkPoint* pts = fPts; in init()
288 SkPoint* tex = fTex; in init()
368 static SkPoint apply_warp(const SkVector& drag, SkScalar dragLength, in apply_warp()
369 const SkPoint& dragStart, const SkPoint& dragCurr, in apply_warp()
370 const SkPoint& orig) { in apply_warp()
372 SkScalar length = SkPoint::Normalize(&delta); in apply_warp()
386 return SkPoint::Make(px, py); in apply_warp()
389 static SkPoint apply_warp2(const SkVector& drag, SkScalar dragLength, in apply_warp2()
390 const SkPoint& dragStart, const SkPoint& dragCurr, in apply_warp2()
391 const SkPoint& orig) { in apply_warp2()
393 SkScalar length = SkPoint::Normalize(&delta); in apply_warp2()
412 return SkPoint::Make(px, py); in apply_warp2()
415 typedef SkPoint (*WarpProc)(const SkVector& drag, SkScalar dragLength,
416 const SkPoint& dragStart, const SkPoint& dragCurr,
417 const SkPoint& orig);
419 void warp(const SkPoint& p0, const SkPoint& p1) { in warp()
421 SkPoint delta = p1 - p0; in warp()
422 SkScalar length = SkPoint::Normalize(&delta); in warp()
457 SkPoint pts[2] = { click->fOrig, click->fCurr }; in onClick()
466 SkPoint fP0, fP1;