Lines Matching refs:DPoint
61 struct DPoint { struct
64 static DPoint Make(double x, double y) { in Make() argument
65 DPoint pt; in Make()
83 static double Distance(const DPoint& a, const DPoint& b) { in Distance() argument
87 double distanceToSqd(const DPoint& pt) const { in distanceToSqd() argument
129 DPoint mapPoint(const SkPoint& src) const { in mapPoint()
130 DPoint pt = DPoint::Make(src.x(), src.y()); in mapPoint()
134 DPoint mapPoint(const DPoint& src) const { in mapPoint()
135 return DPoint::Make(fMat[0] * src.x() + fMat[1] * src.y() + fMat[2], in mapPoint()
222 DPoint fP0T, fP2T;
246 const DPoint p0 = DPoint::Make(fPts[0].x(), fPts[0].y()); in init()
247 const DPoint p2 = DPoint::Make(this->endPt().x(), this->endPt().y()); in init()
257 double hypotenuse = DPoint::Distance(p0, p2); in init()
406 const DPoint &xFormPt) { in calculate_nearest_point_for_quad()
477 const DPoint& xFormPtLeft = segment.fXformMatrix.mapPoint(pointLeft); in precomputation_for_row()
478 const DPoint& xFormPtRight = segment.fXformMatrix.mapPoint(pointRight); in precomputation_for_row()
527 const DPoint& xFormPt, in calculate_side_of_quad()
592 const DPoint xformPt = segment.fXformMatrix.mapPoint(point); in distance_to_segment()
621 DPoint x = DPoint::Make(nearestPoint, nearestPoint * nearestPoint); in distance_to_segment()