#include <SkPathOpsTSect.h>
Definition at line 37 of file SkPathOpsTSect.h.
◆ SkTCoincident()
SkTCoincident::SkTCoincident |
( |
| ) |
|
|
inline |
◆ debugInit()
void SkTCoincident::debugInit |
( |
| ) |
|
|
inline |
Definition at line 43 of file SkPathOpsTSect.h.
43 {
44#ifdef SK_DEBUG
47 this->fMatch = 0xFF;
48#endif
49 }
◆ dump()
void SkTCoincident::dump |
( |
| ) |
const |
Definition at line 1190 of file PathOpsDebug.cpp.
1190 {
1191 SkDebugf(
"t=%1.9g pt=(%1.9g,%1.9g)%s\n", fPerpT, fPerpPt.
fX, fPerpPt.
fY,
1192 fMatch ? " match" : "");
1193}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
◆ dumpIsCoincidentStr()
char SkTCoincident::dumpIsCoincidentStr |
( |
| ) |
const |
Definition at line 1183 of file PathOpsDebug.cpp.
1183 {
1184 if (!!fMatch != fMatch) {
1185 return '?';
1186 }
1187 return fMatch ? '*' : 0;
1188}
◆ init()
void SkTCoincident::init |
( |
| ) |
|
|
inline |
Definition at line 59 of file SkPathOpsTSect.h.
59 {
60 fPerpT = -1;
61 fMatch = false;
63 }
◆ isMatch()
bool SkTCoincident::isMatch |
( |
| ) |
const |
|
inline |
Definition at line 54 of file SkPathOpsTSect.h.
54 {
57 }
static constexpr bool SkToBool(const T &x)
◆ markCoincident()
void SkTCoincident::markCoincident |
( |
| ) |
|
|
inline |
Definition at line 65 of file SkPathOpsTSect.h.
65 {
66 if (!fMatch) {
67 fPerpT = -1;
68 }
69 fMatch = true;
70 }
◆ perpPt()
const SkDPoint & SkTCoincident::perpPt |
( |
| ) |
const |
|
inline |
◆ perpT()
double SkTCoincident::perpT |
( |
| ) |
const |
|
inline |
◆ setPerp()
Definition at line 28 of file SkPathOpsTSect.cpp.
29 {
33 int used =
i.intersectRay(c2, perp);
34
35 if (used == 0 || used == 3) {
37 return;
38 }
42 if (used == 2) {
43 double distSq = (fPerpPt - cPt).lengthSquared();
44 double dist2Sq = (
i.pt(1) - cPt).lengthSquared();
45 if (dist2Sq < distSq) {
48 }
49 }
50#if DEBUG_T_SECT
51 SkDebugf(
"setPerp t=%1.9g cPt=(%1.9g,%1.9g) %s oppT=%1.9g fPerpPt=(%1.9g,%1.9g)\n",
54#endif
56#if DEBUG_T_SECT
57 if (fMatch) {
59 }
60#endif
61}
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
virtual SkDVector dxdyAtT(double t) const =0
bool approximatelyEqual(const SkDPoint &a) const
The documentation for this class was generated from the following files: