Home
last modified time | relevance | path

Searched refs:SkDVector (Results 1 – 24 of 24) sorted by relevance

/external/skia/src/pathops/
DSkPathOpsPoint.h17 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
61 double crossCheck(const SkDVector& a) const { in crossCheck() argument
67 double dot(const SkDVector& a) const { in dot() argument
89 friend SkDVector operator-(const SkDPoint& a, const SkDPoint& b); argument
105 void operator+=(const SkDVector& v) {
111 void operator-=(const SkDVector& v) {
117 SkDPoint operator+(const SkDVector& v) {
[all …]
DSkPathOpsLine.cpp32 SkDVector p0 = fPts[1] - fPts[0]; in isLeft()
33 SkDVector p2 = pt - fPts[0]; in isLeft()
65 SkDVector len = fPts[1] - fPts[0]; // the x/y magnitudes of the line in nearPoint()
67 SkDVector ab0 = xy - fPts[0]; in nearPoint()
92 SkDVector len = fPts[1] - fPts[0]; // the x/y magnitudes of the line in nearRay()
94 SkDVector ab0 = xy - fPts[0]; in nearRay()
129 SkDVector distU = {xy.fY - y, xy.fX - realPtX}; in NearPointH()
164 SkDVector distU = {xy.fX - x, xy.fY - realPtY}; in NearPointV()
DSkPathOpsCubic.h43 SkDVector v01 = fPts[0] - fPts[1]; in controlsInside()
44 SkDVector v02 = fPts[0] - fPts[2]; in controlsInside()
45 SkDVector v03 = fPts[0] - fPts[3]; in controlsInside()
46 SkDVector v13 = fPts[1] - fPts[3]; in controlsInside()
47 SkDVector v23 = fPts[2] - fPts[3]; in controlsInside()
71 SkDVector dxdyAtT(double t) const;
DSkOpAngle.cpp274 SkDVector scratch[2]; in checkParallel()
275 const SkDVector* sweep, * tweep; in checkParallel()
311 SkDVector m0 = segment()->dPtAtT(this->midT()) - this->fCurvePart[0]; in checkParallel()
312 SkDVector m1 = rh->segment()->dPtAtT(rh->midT()) - rh->fCurvePart[0]; in checkParallel()
376 const SkDVector* sweep = this->fSweep; in convexHullOverlaps()
377 const SkDVector* tweep = rh->fSweep; in convexHullOverlaps()
407 SkDVector m0 = this->segment()->dPtAtT(this->midT()) - this->fCurvePart[0]; in convexHullOverlaps()
408 SkDVector m1 = rh->segment()->dPtAtT(rh->midT()) - rh->fCurvePart[0]; in convexHullOverlaps()
433 SkDVector v; in distEndRatio()
480 SkDVector sCept = {0, 0}; in endsIntersect()
[all …]
DSkPathOpsQuad.h33 SkDVector v01 = fPts[0] - fPts[1]; in controlsInside()
34 SkDVector v02 = fPts[0] - fPts[2]; in controlsInside()
35 SkDVector v12 = fPts[1] - fPts[2]; in controlsInside()
63 SkDVector dxdyAtT(double t) const;
DSkPathOpsPoint.cpp9 SkDVector operator-(const SkDPoint& a, const SkDPoint& b) { in operator -()
10 SkDVector v = {a.fX - b.fX, a.fY - b.fY}; in operator -()
DSkPathOpsCurve.h142 static SkDVector dline_dxdy_at_t(const SkPoint a[2], SkScalar , double ) { in dline_dxdy_at_t()
148 static SkDVector dquad_dxdy_at_t(const SkPoint a[3], SkScalar , double t) { in dquad_dxdy_at_t()
154 static SkDVector dconic_dxdy_at_t(const SkPoint a[3], SkScalar weight, double t) { in dconic_dxdy_at_t()
160 static SkDVector dcubic_dxdy_at_t(const SkPoint a[4], SkScalar , double t) { in dcubic_dxdy_at_t()
166 static SkDVector (* const CurveDSlopeAtT[])(const SkPoint[], SkScalar , double ) = {
DSkPathOpsWinding.cpp56 static double pt_dxdy(const SkDVector& v, SkOpRayDir dir) { in pt_dxdy()
60 static double pt_dydx(const SkDVector& v, SkOpRayDir dir) { in pt_dydx()
77 static bool ccw_dxdy(const SkDVector& v, SkOpRayDir dir) { in ccw_dxdy()
99 SkDVector fSlope;
137 SkDVector slope; in rayCheck()
DSkPathOpsConic.cpp46 SkDVector SkDConic::dxdyAtT(double t) const { in dxdyAtT()
47 SkDVector result = { in dxdyAtT()
DSkIntersections.cpp137 SkDVector best = fPt[result] - origin; in mostOutside()
138 SkDVector test = fPt[index] - origin; in mostOutside()
DSkDLineIntersection.cpp36 SkDVector aLen = a[1] - a[0]; in intersectRay()
37 SkDVector bLen = b[1] - b[0]; in intersectRay()
45 SkDVector ab0 = a[0] - b[0]; in intersectRay()
DSkOpAngle.h131 SkDVector fSweep[2];
DSkPathOpsQuad.cpp158 SkDVector SkDQuad::dxdyAtT(double t) const { in dxdyAtT()
162 SkDVector result = { a * fPts[0].fX + b * fPts[1].fX + c * fPts[2].fX, in dxdyAtT()
DSkPathOpsConic.h58 SkDVector dxdyAtT(double t) const;
DSkPathOpsCubic.cpp266 SkDVector dPt = cubic.dxdyAtT(inflectionTs[index]); in ComplexBreak()
273 SkDVector dPt = cubic.dxdyAtT(maxCurvature[index]); in ComplexBreak()
475 SkDVector SkDCubic::dxdyAtT(double t) const { in dxdyAtT()
476 SkDVector result = { derivative_at_t(&fPts[0].fX, t), derivative_at_t(&fPts[0].fY, t) }; in dxdyAtT()
DSkPathOpsTSect.h317 SkDVector dxdy = c1.dxdyAtT(t); in setPerp()
561 SkDVector len = fPart[TCurve::kPointLast] - fPart[0]; in linearT()
638 SkDVector v1 = *otherPts[o1] - base; in onlyEndPointsInCommon()
640 SkDVector v2 = *oppOtherPts[o2] - base; in onlyEndPointsInCommon()
1325 SkDVector perpS, perpE; in linesIntersect()
1359 SkDVector perpW = workPt - coinW.perpPt(); in linesIntersect()
1386 SkDVector dxdy = this->fCurve.dxdyAtT(t); in matchedDirection()
1387 SkDVector dxdy2 = sect2->fCurve.dxdyAtT(t2); in matchedDirection()
1518 SkDVector startV = test->fCoinStart.perpPt() - test->fPart[0]; in removeByPerpendicular()
1519 SkDVector endV = test->fCoinEnd.perpPt() - test->fPart[TCurve::kPointLast]; in removeByPerpendicular()
DSkPathOpsTypes.h451 struct SkDVector;
DSkOpSegment.h167 SkDVector dSlopeAtT(double mid) const { in dSlopeAtT()
DSkOpSegment.cpp518 SkDVector slope = this->dSlopeAtT(t); in distSq()
838 SkDVector dxdy = (*CurveDSlopeAtT[this->verb()])(this->pts(), this->weight(), t); in isClose()
/external/skia/tests/
DPathOpsAngleIdeas.cpp44 SkDVector offset = {quad[0].fX, quad[0].fY}; in testArc()
105 const SkDVector& pt = quad.ptAtT(t) - quad[0]; in quadAngle()
116 static void setQuadHullSweep(const SkDQuad& quad, SkDVector sweep[2]) { in setQuadHullSweep()
122 SkDVector v[] = {quad[2] - quad[0], quad[1] - quad[0], quad[2] - quad[1]}; in distEndRatio()
128 SkDVector sweep[2], tweep[2]; in checkParallel()
151 SkDVector m0 = quad1.ptAtT(0.5) - quad1[0]; in checkParallel()
152 SkDVector m1 = quad2.ptAtT(0.5) - quad2[0]; in checkParallel()
163 SkDVector sweep[2], tweep[2]; in quadHullsOverlap()
195 SkDVector m0 = quad1.ptAtT(0.5) - quad1[0]; in quadHullsOverlap()
196 SkDVector m1 = quad2.ptAtT(0.5) - quad2[0]; in quadHullsOverlap()
[all …]
DPathOpsDVectorTest.cpp25 SkDVector v1 = tests[index + 1] - tests[index]; in DEF_TEST()
27 SkDVector v2 = tests[index] - tests[index + 1]; in DEF_TEST()
DPathOpsTestCommon.h25 bool ValidVector(const SkDVector& v);
DPathOpsDPointTest.cpp30 SkDVector v = p - pt; in DEF_TEST()
DPathOpsTestCommon.cpp326 bool ValidVector(const SkDVector& v) { in ValidVector()