#include <SkPathOpsCurve.h>
|
| SkDEBUGCODE (SkPath::Verb fVerb;) const SkDPoint &operator[](int n) const |
|
SkDPoint & | operator[] (int n) |
|
SkDPoint | conicTop (const SkPoint curve[3], SkScalar curveWeight, double s, double e, double *topT) |
|
SkDPoint | cubicTop (const SkPoint curve[4], SkScalar, double s, double e, double *topT) |
|
void | dump () const |
|
void | dumpID (int) const |
|
SkDPoint | lineTop (const SkPoint[2], SkScalar, double, double, double *topT) |
|
double | nearPoint (SkPath::Verb verb, const SkDPoint &xy, const SkDPoint &opp) const |
|
SkDPoint | quadTop (const SkPoint curve[3], SkScalar, double s, double e, double *topT) |
|
void | setConicBounds (const SkPoint curve[3], SkScalar curveWeight, double s, double e, SkPathOpsBounds *) |
|
void | setCubicBounds (const SkPoint curve[4], SkScalar, double s, double e, SkPathOpsBounds *) |
|
void | setQuadBounds (const SkPoint curve[3], SkScalar, double s, double e, SkPathOpsBounds *) |
|
Definition at line 55 of file SkPathOpsCurve.h.
◆ conicTop()
◆ cubicTop()
◆ dump()
void SkDCurve::dump |
( |
| ) |
const |
◆ dumpID()
void SkDCurve::dumpID |
( |
int |
id | ) |
const |
Definition at line 140 of file PathOpsDebug.cpp.
140 {
141#ifndef SK_RELEASE
142 switch(fVerb) {
145 break;
148 break;
151 break;
154 break;
155 default:
157 }
158#else
160#endif
161}
void dumpID(int id) const
void dumpID(int id) const
void dumpID(int id) const
◆ lineTop()
SkDPoint SkDCurve::lineTop |
( |
const |
SkPoint[2], |
|
|
SkScalar |
, |
|
|
double |
, |
|
|
double |
, |
|
|
double * |
topT |
|
) |
| |
◆ nearPoint()
Definition at line 18 of file SkPathOpsCurve.cpp.
18 {
21 double maxX = minX;
22 for (
int index = 1; index <=
count; ++index) {
25 }
27 return -1;
28 }
30 double maxY = minY;
31 for (
int index = 1; index <=
count; ++index) {
34 }
36 return -1;
37 }
41 int minIndex = -1;
42 double minDist = FLT_MAX;
43 for (
int index = 0; index <
i.used(); ++index) {
45 if (minDist > dist) {
46 minDist = dist;
47 minIndex = index;
48 }
49 }
50 if (minIndex < 0) {
51 return -1;
52 }
55 return -1;
56 }
58}
static void(*const CurveDIntersectRay[])(const SkDCurve &, const SkDLine &, SkIntersections *)
bool AlmostEqualUlps_Pin(float a, float b)
bool AlmostBetweenUlps(float a, float b, float c)
int SkPathOpsVerbToPoints(SkPath::Verb verb)
static float max(float r, float g, float b)
static float min(float r, float g, float b)
SkDPoint fPts[kPointCount]
double distance(const SkDPoint &a) const
◆ operator[]()
◆ quadTop()
◆ setConicBounds()
Definition at line 60 of file SkPathOpsCurve.cpp.
61 {
63 dCurve.
set(curve, curveWeight);
68}
#define SkDoubleToScalar(x)
Optional< SkRect > bounds
const SkDConic & set(const SkPoint pts[kPointCount], SkScalar weight SkDEBUGPARAMS(SkOpGlobalState *state=nullptr))
void setBounds(const SkDConic &curve)
◆ setCubicBounds()
Definition at line 70 of file SkPathOpsCurve.cpp.
71 {
78}
const SkDCubic & set(const SkPoint pts[kPointCount] SkDEBUGPARAMS(SkOpGlobalState *state=nullptr))
◆ setQuadBounds()
Definition at line 80 of file SkPathOpsCurve.cpp.
81 {
88}
const SkDQuad & set(const SkPoint pts[kPointCount] SkDEBUGPARAMS(SkOpGlobalState *state=nullptr))
◆ SkDEBUGCODE()
union { ... } SkDCurve::@414 |
◆ fConic
◆ fCubic
◆ fLine
◆ fQuad
The documentation for this struct was generated from the following files: