Lines Matching refs:SkPoint

93 static bool set_normal_unitnormal(const SkPoint& before, const SkPoint& after, SkScalar scale,
119 SkPoint fQuad[3]; // the stroked quad parallel to the original curve
120 SkPoint fTangentStart; // a point tangent to fQuad[0]
121 SkPoint fTangentEnd; // a point tangent to fQuad[2]
167 SkPoint moveToPt() const { return fFirstPt; }
169 void moveTo(const SkPoint&);
170 void lineTo(const SkPoint&, const SkPath::Iter* iter = nullptr);
171 void quadTo(const SkPoint&, const SkPoint&);
172 void conicTo(const SkPoint&, const SkPoint&, SkScalar weight);
173 void cubicTo(const SkPoint&, const SkPoint&, const SkPoint&);
196 SkPoint fFirstPt, fPrevPt; // on original path
197 SkPoint fFirstOuterPt;
238 static ReductionType CheckConicLinear(const SkConic& , SkPoint* reduction);
239 static ReductionType CheckCubicLinear(const SkPoint cubic[4], SkPoint reduction[3],
240 const SkPoint** tanPtPtr);
241 static ReductionType CheckQuadLinear(const SkPoint quad[3], SkPoint* reduction);
243 ResultType compareQuadCubic(const SkPoint cubic[4], SkQuadConstruct* );
244 ResultType compareQuadQuad(const SkPoint quad[3], SkQuadConstruct* );
245 void conicPerpRay(const SkConic& , SkScalar t, SkPoint* tPt, SkPoint* onPt,
246 SkPoint* tangent) const;
249 bool cubicMidOnLine(const SkPoint cubic[4], const SkQuadConstruct* ) const;
250 void cubicPerpRay(const SkPoint cubic[4], SkScalar t, SkPoint* tPt, SkPoint* onPt,
251 SkPoint* tangent) const;
252 void cubicQuadEnds(const SkPoint cubic[4], SkQuadConstruct* );
253 void cubicQuadMid(const SkPoint cubic[4], const SkQuadConstruct* , SkPoint* mid) const;
254 bool cubicStroke(const SkPoint cubic[4], SkQuadConstruct* );
257 bool ptInQuadBounds(const SkPoint quad[3], const SkPoint& pt) const;
258 void quadPerpRay(const SkPoint quad[3], SkScalar t, SkPoint* tPt, SkPoint* onPt,
259 SkPoint* tangent) const;
260 bool quadStroke(const SkPoint quad[3], SkQuadConstruct* );
264 void setCubicEndNormal(const SkPoint cubic[4],
267 void setQuadEndNormal(const SkPoint quad[3],
270 void setRayPts(const SkPoint& tPt, SkVector* dxy, SkPoint* onPt, SkPoint* tangent) const;
272 ResultType strokeCloseEnough(const SkPoint stroke[3], const SkPoint ray[2],
274 ResultType tangentsMeet(const SkPoint cubic[4], SkQuadConstruct* );
277 bool preJoinTo(const SkPoint&, SkVector* normal, SkVector* unitNormal,
279 void postJoinTo(const SkPoint&, const SkVector& normal,
282 void line_to(const SkPoint& currPt, const SkVector& normal);
287 bool SkPathStroker::preJoinTo(const SkPoint& currPt, SkVector* normal,
320 void SkPathStroker::postJoinTo(const SkPoint& currPt, const SkVector& normal,
331 SkPoint pt;
420 void SkPathStroker::moveTo(const SkPoint& pt) {
429 void SkPathStroker::line_to(const SkPoint& currPt, const SkVector& normal) {
437 SkPoint pts[4];
466 void SkPathStroker::lineTo(const SkPoint& currPt, const SkPath::Iter* iter) {
483 void SkPathStroker::setQuadEndNormal(const SkPoint quad[3], const SkVector& normalAB,
496 void SkPathStroker::setCubicEndNormal(const SkPoint cubic[4], const SkVector& normalAB,
533 static SkScalar pt_to_line(const SkPoint& pt, const SkPoint& lineStart, const SkPoint& lineEnd) {
540 SkPoint hit;
572 static bool cubic_in_line(const SkPoint cubic[4]) {
609 static bool quad_in_line(const SkPoint quad[3]) {
637 SkPathStroker::ReductionType SkPathStroker::CheckCubicLinear(const SkPoint cubic[4],
638 SkPoint reduction[3], const SkPoint** tangentPtPtr) {
677 SkPoint* reduction) {
699 SkPathStroker::ReductionType SkPathStroker::CheckQuadLinear(const SkPoint quad[3],
700 SkPoint* reduction) {
720 void SkPathStroker::conicTo(const SkPoint& pt1, const SkPoint& pt2, SkScalar weight) {
722 SkPoint reduction;
758 void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) {
759 const SkPoint quad[3] = { fPrevPt, pt1, pt2 };
760 SkPoint reduction;
799 void SkPathStroker::setRayPts(const SkPoint& tPt, SkVector* dxy, SkPoint* onPt,
800 SkPoint* tangent) const {
815 void SkPathStroker::conicPerpRay(const SkConic& conic, SkScalar t, SkPoint* tPt, SkPoint* onPt,
816 SkPoint* tangent) const {
828 SkPoint conicStartPt;
834 SkPoint conicEndPt;
843 void SkPathStroker::cubicPerpRay(const SkPoint cubic[4], SkScalar t, SkPoint* tPt, SkPoint* onPt,
844 SkPoint* tangent) const {
846 SkPoint chopped[7];
849 const SkPoint* cPts = cubic;
872 void SkPathStroker::cubicQuadEnds(const SkPoint cubic[4], SkQuadConstruct* quadPts) {
874 SkPoint cubicStartPt;
880 SkPoint cubicEndPt;
887 void SkPathStroker::cubicQuadMid(const SkPoint cubic[4], const SkQuadConstruct* quadPts,
888 SkPoint* mid) const {
889 SkPoint cubicMidPt;
894 void SkPathStroker::quadPerpRay(const SkPoint quad[3], SkScalar t, SkPoint* tPt, SkPoint* onPt,
895 SkPoint* tangent) const {
909 const SkPoint& start = quadPts->fQuad[0];
910 const SkPoint& end = quadPts->fQuad[2];
946 SkPoint* ctrlPt = &quadPts->fQuad[1];
962 SkPathStroker::ResultType SkPathStroker::tangentsMeet(const SkPoint cubic[4],
969 static int intersect_quad_ray(const SkPoint line[2], const SkPoint quad[3], SkScalar roots[2]) {
984 bool SkPathStroker::ptInQuadBounds(const SkPoint quad[3], const SkPoint& pt) const {
1004 static bool points_within_dist(const SkPoint& nearPt, const SkPoint& farPt, SkScalar limit) {
1008 static bool sharp_angle(const SkPoint quad[3]) {
1025 SkPathStroker::ResultType SkPathStroker::strokeCloseEnough(const SkPoint stroke[3],
1026 const SkPoint ray[2], SkQuadConstruct* quadPts STROKER_DEBUG_PARAMS(int depth)) const {
1027 SkPoint strokeMid = SkEvalQuadAt(stroke, SK_ScalarHalf);
1056 SkPoint quadPt = SkEvalQuadAt(stroke, roots[0]);
1074 SkPathStroker::ResultType SkPathStroker::compareQuadCubic(const SkPoint cubic[4],
1084 SkPoint ray[2]; // points near midpoint on quad, midpoint on cubic
1100 SkPoint ray[2]; // points near midpoint on quad, midpoint on conic
1106 SkPathStroker::ResultType SkPathStroker::compareQuadQuad(const SkPoint quad[3],
1110 SkPoint quadStartPt;
1116 SkPoint quadEndPt;
1127 SkPoint ray[2];
1134 const SkPoint* quad = quadPts->fQuad;
1139 bool SkPathStroker::cubicMidOnLine(const SkPoint cubic[4], const SkQuadConstruct* quadPts) const {
1140 SkPoint strokeMid;
1146 bool SkPathStroker::cubicStroke(const SkPoint cubic[4], SkQuadConstruct* quadPts) {
1165 const SkPoint* stroke = quadPts->fQuad;
1216 const SkPoint* stroke = quadPts->fQuad;
1245 bool SkPathStroker::quadStroke(const SkPoint quad[3], SkQuadConstruct* quadPts) {
1248 const SkPoint* stroke = quadPts->fQuad;
1277 void SkPathStroker::cubicTo(const SkPoint& pt1, const SkPoint& pt2,
1278 const SkPoint& pt3) {
1279 const SkPoint cubic[4] = { fPrevPt, pt1, pt2, pt3 };
1280 SkPoint reduction[3];
1281 const SkPoint* tangentPt;
1328 SkPoint cuspLoc;
1457 SkPoint pts[4];
1520 SkPoint pts[] = { 146.333328, 192.333328, 300.333344, 293.333344 };
1547 SkPoint pts[8];