/external/skia/src/pathops/ |
D | SkPathOpsPoint.h | 17 struct SkDVector { struct 21 SkDVector& set(const SkVector& pt) { in set() argument 28 void operator+=(const SkDVector& v) { 34 void operator-=(const SkDVector& v) { 57 double cross(const SkDVector& a) const { in cross() argument 63 double crossCheck(const SkDVector& a) const { in crossCheck() argument 70 double crossNoNormalCheck(const SkDVector& a) const { in crossNoNormalCheck() argument 76 double dot(const SkDVector& a) const { in dot() argument 88 SkDVector& normalize() { in normalize() argument 109 friend SkDVector operator-(const SkDPoint& a, const SkDPoint& b) { argument [all …]
|
D | SkOpAngle.cpp | 215 int SkOpAngle::lineOnOneSide(const SkDPoint& origin, const SkDVector& line, const SkOpAngle* test, in lineOnOneSide() 253 SkDVector line = fPart.fCurve[1] - origin; in lineOnOneSide() 267 SkDVector line = fOriginalCurvePart[1] - origin; in linesOnOriginalSide() 272 SkDVector testLine = testCurve[index] - origin; in linesOnOriginalSide() 315 SkDVector xLine = test->fPart.fCurve.fLine[1] - xOrigin; in alignmentSameSide() 316 SkDVector oLine = test->fOriginalCurvePart.fLine[1] - oOrigin; in alignmentSameSide() 336 SkDVector scratch[2]; in checkParallel() 337 const SkDVector* sweep, * tweep; in checkParallel() 372 SkDVector m0 = segment()->dPtAtT(this->midT()) - this->fPart.fCurve[0]; in checkParallel() 373 SkDVector m1 = rh->segment()->dPtAtT(rh->midT()) - rh->fPart.fCurve[0]; in checkParallel() [all …]
|
D | SkPathOpsCurve.h | 74 void offset(SkPath::Verb verb, const SkDVector& ); 92 SkDVector fSweep[2]; 182 static SkDVector dline_dxdy_at_t(const SkPoint a[2], SkScalar , double ) { in dline_dxdy_at_t() 188 static SkDVector dquad_dxdy_at_t(const SkPoint a[3], SkScalar , double t) { in dquad_dxdy_at_t() 194 static SkDVector dconic_dxdy_at_t(const SkPoint a[3], SkScalar weight, double t) { in dconic_dxdy_at_t() 200 static SkDVector dcubic_dxdy_at_t(const SkPoint a[4], SkScalar , double t) { in dcubic_dxdy_at_t() 206 static SkDVector (* const CurveDSlopeAtT[])(const SkPoint[], SkScalar , double ) = { 214 static SkDVector ddline_dxdy_at_t(const SkDCurve& c, double ) { in ddline_dxdy_at_t() 218 static SkDVector ddquad_dxdy_at_t(const SkDCurve& c, double t) { in ddquad_dxdy_at_t() 222 static SkDVector ddconic_dxdy_at_t(const SkDCurve& c, double t) { in ddconic_dxdy_at_t() [all …]
|
D | SkPathOpsCubic.h | 33 SkDVector v01 = fPts[0] - fPts[1]; in controlsInside() 34 SkDVector v02 = fPts[0] - fPts[2]; in controlsInside() 35 SkDVector v03 = fPts[0] - fPts[3]; in controlsInside() 36 SkDVector v13 = fPts[1] - fPts[3]; in controlsInside() 37 SkDVector v23 = fPts[2] - fPts[3]; in controlsInside() 63 SkDVector dxdyAtT(double t) const; 205 SkDVector dxdyAtT(double t) const override { return fCubic.dxdyAtT(t); } in dxdyAtT()
|
D | SkPathOpsLine.cpp | 37 SkDVector len = fPts[1] - fPts[0]; // the x/y magnitudes of the line in nearPoint() 39 SkDVector ab0 = xy - fPts[0]; in nearPoint() 67 SkDVector len = fPts[1] - fPts[0]; // the x/y magnitudes of the line in nearRay() 69 SkDVector ab0 = xy - fPts[0]; in nearRay() 104 SkDVector distU = {xy.fY - y, xy.fX - realPtX}; in NearPointH() 139 SkDVector distU = {xy.fX - x, xy.fY - realPtY}; in NearPointV()
|
D | SkPathOpsQuad.h | 34 SkDVector v01 = fPts[0] - fPts[1]; in controlsInside() 35 SkDVector v02 = fPts[0] - fPts[2]; in controlsInside() 36 SkDVector v12 = fPts[1] - fPts[2]; in controlsInside() 68 SkDVector dxdyAtT(double t) const; 148 SkDVector dxdyAtT(double t) const override { return fQuad.dxdyAtT(t); } in dxdyAtT()
|
D | SkPathOpsQuad.cpp | 16 SkDVector v0 = fPts[2] - fPts[0]; in pointInTriangle() 17 SkDVector v1 = fPts[1] - fPts[0]; in pointInTriangle() 18 SkDVector v2 = test - fPts[0]; in pointInTriangle() 199 SkDVector SkDQuad::dxdyAtT(double t) const { in dxdyAtT() 203 SkDVector result = { a * fPts[0].fX + b * fPts[1].fX + c * fPts[2].fX, in dxdyAtT()
|
D | SkPathOpsWinding.cpp | 58 static double pt_dxdy(const SkDVector& v, SkOpRayDir dir) { in pt_dxdy() 62 static double pt_dydx(const SkDVector& v, SkOpRayDir dir) { in pt_dydx() 79 static bool ccw_dxdy(const SkDVector& v, SkOpRayDir dir) { in ccw_dxdy() 101 SkDVector fSlope; 139 SkDVector slope; in rayCheck()
|
D | SkIntersections.cpp | 151 SkDVector best = fPt[result] - origin; in mostOutside() 152 SkDVector test = fPt[index] - origin; in mostOutside()
|
D | SkPathOpsConic.cpp | 50 SkDVector SkDConic::dxdyAtT(double t) const { in dxdyAtT() 51 SkDVector result = { in dxdyAtT()
|
D | SkPathOpsCurve.cpp | 55 void SkDCurve::offset(SkPath::Verb verb, const SkDVector& off) { in offset() 116 SkDVector thirdSweep = fCurve[3] - fCurve[0]; in setCurveHullSweep()
|
/external/skqp/src/pathops/ |
D | SkPathOpsPoint.h | 17 struct SkDVector { struct 27 void operator+=(const SkDVector& v) { argument 33 void operator-=(const SkDVector& v) { 56 double cross(const SkDVector& a) const { in cross() argument 62 double crossCheck(const SkDVector& a) const { in crossCheck() argument 69 double crossNoNormalCheck(const SkDVector& a) const { in crossNoNormalCheck() argument 75 double dot(const SkDVector& a) const { in dot() argument 103 friend SkDVector operator-(const SkDPoint& a, const SkDPoint& b) { argument 121 void operator+=(const SkDVector& v) { 127 void operator-=(const SkDVector& v) { [all …]
|
D | SkOpAngle.cpp | 215 int SkOpAngle::lineOnOneSide(const SkDPoint& origin, const SkDVector& line, const SkOpAngle* test, in lineOnOneSide() 253 SkDVector line = fPart.fCurve[1] - origin; in lineOnOneSide() 267 SkDVector line = fOriginalCurvePart[1] - origin; in linesOnOriginalSide() 272 SkDVector testLine = testCurve[index] - origin; in linesOnOriginalSide() 315 SkDVector xLine = test->fPart.fCurve.fLine[1] - xOrigin; in alignmentSameSide() 316 SkDVector oLine = test->fOriginalCurvePart.fLine[1] - oOrigin; in alignmentSameSide() 336 SkDVector scratch[2]; in checkParallel() 337 const SkDVector* sweep, * tweep; in checkParallel() 372 SkDVector m0 = segment()->dPtAtT(this->midT()) - this->fPart.fCurve[0]; in checkParallel() 373 SkDVector m1 = rh->segment()->dPtAtT(rh->midT()) - rh->fPart.fCurve[0]; in checkParallel() [all …]
|
D | SkPathOpsCurve.h | 74 void offset(SkPath::Verb verb, const SkDVector& ); 92 SkDVector fSweep[2]; 182 static SkDVector dline_dxdy_at_t(const SkPoint a[2], SkScalar , double ) { in dline_dxdy_at_t() 188 static SkDVector dquad_dxdy_at_t(const SkPoint a[3], SkScalar , double t) { in dquad_dxdy_at_t() 194 static SkDVector dconic_dxdy_at_t(const SkPoint a[3], SkScalar weight, double t) { in dconic_dxdy_at_t() 200 static SkDVector dcubic_dxdy_at_t(const SkPoint a[4], SkScalar , double t) { in dcubic_dxdy_at_t() 206 static SkDVector (* const CurveDSlopeAtT[])(const SkPoint[], SkScalar , double ) = { 214 static SkDVector ddline_dxdy_at_t(const SkDCurve& c, double ) { in ddline_dxdy_at_t() 218 static SkDVector ddquad_dxdy_at_t(const SkDCurve& c, double t) { in ddquad_dxdy_at_t() 222 static SkDVector ddconic_dxdy_at_t(const SkDCurve& c, double t) { in ddconic_dxdy_at_t() [all …]
|
D | SkPathOpsCubic.h | 33 SkDVector v01 = fPts[0] - fPts[1]; in controlsInside() 34 SkDVector v02 = fPts[0] - fPts[2]; in controlsInside() 35 SkDVector v03 = fPts[0] - fPts[3]; in controlsInside() 36 SkDVector v13 = fPts[1] - fPts[3]; in controlsInside() 37 SkDVector v23 = fPts[2] - fPts[3]; in controlsInside() 63 SkDVector dxdyAtT(double t) const; 205 SkDVector dxdyAtT(double t) const override { return fCubic.dxdyAtT(t); } in dxdyAtT()
|
D | SkPathOpsLine.cpp | 37 SkDVector len = fPts[1] - fPts[0]; // the x/y magnitudes of the line in nearPoint() 39 SkDVector ab0 = xy - fPts[0]; in nearPoint() 67 SkDVector len = fPts[1] - fPts[0]; // the x/y magnitudes of the line in nearRay() 69 SkDVector ab0 = xy - fPts[0]; in nearRay() 104 SkDVector distU = {xy.fY - y, xy.fX - realPtX}; in NearPointH() 139 SkDVector distU = {xy.fX - x, xy.fY - realPtY}; in NearPointV()
|
D | SkPathOpsQuad.h | 34 SkDVector v01 = fPts[0] - fPts[1]; in controlsInside() 35 SkDVector v02 = fPts[0] - fPts[2]; in controlsInside() 36 SkDVector v12 = fPts[1] - fPts[2]; in controlsInside() 68 SkDVector dxdyAtT(double t) const; 148 SkDVector dxdyAtT(double t) const override { return fQuad.dxdyAtT(t); } in dxdyAtT()
|
D | SkPathOpsQuad.cpp | 16 SkDVector v0 = fPts[2] - fPts[0]; in pointInTriangle() 17 SkDVector v1 = fPts[1] - fPts[0]; in pointInTriangle() 18 SkDVector v2 = test - fPts[0]; in pointInTriangle() 199 SkDVector SkDQuad::dxdyAtT(double t) const { in dxdyAtT() 203 SkDVector result = { a * fPts[0].fX + b * fPts[1].fX + c * fPts[2].fX, in dxdyAtT()
|
D | SkPathOpsWinding.cpp | 58 static double pt_dxdy(const SkDVector& v, SkOpRayDir dir) { in pt_dxdy() 62 static double pt_dydx(const SkDVector& v, SkOpRayDir dir) { in pt_dydx() 79 static bool ccw_dxdy(const SkDVector& v, SkOpRayDir dir) { in ccw_dxdy() 101 SkDVector fSlope; 139 SkDVector slope; in rayCheck()
|
D | SkIntersections.cpp | 151 SkDVector best = fPt[result] - origin; in mostOutside() 152 SkDVector test = fPt[index] - origin; in mostOutside()
|
D | SkPathOpsCurve.cpp | 55 void SkDCurve::offset(SkPath::Verb verb, const SkDVector& off) { in offset() 116 SkDVector thirdSweep = fCurve[3] - fCurve[0]; in setCurveHullSweep()
|
/external/skqp/tests/ |
D | PathOpsAngleIdeas.cpp | 44 SkDVector offset = {quad[0].fX, quad[0].fY}; in testArc() 107 const SkDVector& pt = quad.ptAtT(t) - quad[0]; in quadAngle() 118 static void setQuadHullSweep(const SkDQuad& quad, SkDVector sweep[2]) { in setQuadHullSweep() 124 SkDVector v[] = {quad[2] - quad[0], quad[1] - quad[0], quad[2] - quad[1]}; in distEndRatio() 130 SkDVector sweep[2], tweep[2]; in checkParallel() 153 SkDVector m0 = quad1.ptAtT(0.5) - quad1[0]; in checkParallel() 154 SkDVector m1 = quad2.ptAtT(0.5) - quad2[0]; in checkParallel() 165 SkDVector sweep[2], tweep[2]; in quadHullsOverlap() 197 SkDVector m0 = quad1.ptAtT(0.5) - quad1[0]; in quadHullsOverlap() 198 SkDVector m1 = quad2.ptAtT(0.5) - quad2[0]; in quadHullsOverlap() [all …]
|
D | PathOpsDVectorTest.cpp | 25 SkDVector v1 = tests[index + 1] - tests[index]; in DEF_TEST() 27 SkDVector v2 = tests[index] - tests[index + 1]; in DEF_TEST()
|
/external/skia/tests/ |
D | PathOpsAngleIdeas.cpp | 44 SkDVector offset = {quad[0].fX, quad[0].fY}; in testArc() 107 const SkDVector& pt = quad.ptAtT(t) - quad[0]; in quadAngle() 118 static void setQuadHullSweep(const SkDQuad& quad, SkDVector sweep[2]) { in setQuadHullSweep() 124 SkDVector v[] = {quad[2] - quad[0], quad[1] - quad[0], quad[2] - quad[1]}; in distEndRatio() 130 SkDVector sweep[2], tweep[2]; in checkParallel() 153 SkDVector m0 = quad1.ptAtT(0.5) - quad1[0]; in checkParallel() 154 SkDVector m1 = quad2.ptAtT(0.5) - quad2[0]; in checkParallel() 165 SkDVector sweep[2], tweep[2]; in quadHullsOverlap() 197 SkDVector m0 = quad1.ptAtT(0.5) - quad1[0]; in quadHullsOverlap() 198 SkDVector m1 = quad2.ptAtT(0.5) - quad2[0]; in quadHullsOverlap() [all …]
|
D | PathOpsDVectorTest.cpp | 25 SkDVector v1 = tests[index + 1] - tests[index]; in DEF_TEST() 27 SkDVector v2 = tests[index] - tests[index + 1]; in DEF_TEST()
|