Definition at line 2218 of file SkPath.cpp.
◆ addPt()
bool Convexicator::addPt |
( |
const SkPoint & |
pt | ) |
|
|
inline |
Definition at line 2228 of file SkPath.cpp.
2228 {
2229 if (fLastPt == pt) {
2230 return true;
2231 }
2232
2233
2235 fLastVec = pt - fLastPt;
2236 fFirstVec = fLastVec;
2237 } else if (!this->addVec(pt - fLastPt)) {
2238 return false;
2239 }
2240 fLastPt = pt;
2241 return true;
2242 }
bool equals(float x, float y) const
◆ BySign()
Definition at line 2244 of file SkPath.cpp.
2244 {
2246
2248 }
2249
2253 int dxes = 0;
2254 int dyes = 0;
2257 for (int outerLoop = 0; outerLoop < 2; ++outerLoop ) {
2261
2264 }
2267 dxes += (sx != lastSx);
2268 dyes += (sy != lastSy);
2269 if (dxes > 3 || dyes > 3) {
2271 }
2272 lastSx = sx;
2273 lastSy = sy;
2274 }
2276 if (outerLoop) {
2277 break;
2278 }
2279 }
2281 }
2283 }
static const int points[]
#define kValueNeverReturnedBySign
static int sign(SkScalar x)
◆ close()
bool Convexicator::close |
( |
| ) |
|
|
inline |
Definition at line 2285 of file SkPath.cpp.
2285 {
2286
2287
2288
2289 return this->
addPt(fFirstPt) && this->addVec(fFirstVec);
2290 }
bool addPt(const SkPoint &pt)
◆ getFirstDirection()
The direction returned is only valid if the path is determined convex
Definition at line 2221 of file SkPath.cpp.
2221{ return fFirstDirection; }
◆ isFinite()
bool Convexicator::isFinite |
( |
| ) |
const |
|
inline |
Definition at line 2292 of file SkPath.cpp.
2292 {
2293 return fIsFinite;
2294 }
◆ reversals()
int Convexicator::reversals |
( |
| ) |
const |
|
inline |
Definition at line 2296 of file SkPath.cpp.
2296 {
2297 return fReversals;
2298 }
◆ setMovePt()
void Convexicator::setMovePt |
( |
const SkPoint & |
pt | ) |
|
|
inline |
Definition at line 2223 of file SkPath.cpp.
2223 {
2224 fFirstPt = fLastPt = pt;
2226 }
The documentation for this struct was generated from the following file: