Definition at line 2154 of file SkPath.cpp.
◆ addPt()
bool Convexicator::addPt |
( |
const SkPoint & |
pt | ) |
|
|
inline |
Definition at line 2164 of file SkPath.cpp.
2164 {
2165 if (fLastPt == pt) {
2166 return true;
2167 }
2168
2169
2171 fLastVec = pt - fLastPt;
2172 fFirstVec = fLastVec;
2173 } else if (!this->addVec(pt - fLastPt)) {
2174 return false;
2175 }
2176 fLastPt = pt;
2177 return true;
2178 }
bool equals(float x, float y) const
◆ BySign()
Definition at line 2180 of file SkPath.cpp.
2180 {
2182
2184 }
2185
2189 int dxes = 0;
2190 int dyes = 0;
2193 for (int outerLoop = 0; outerLoop < 2; ++outerLoop ) {
2197
2200 }
2203 dxes += (sx != lastSx);
2204 dyes += (sy != lastSy);
2205 if (dxes > 3 || dyes > 3) {
2207 }
2208 lastSx = sx;
2209 lastSy = sy;
2210 }
2212 if (outerLoop) {
2213 break;
2214 }
2215 }
2217 }
2219 }
static const int points[]
#define kValueNeverReturnedBySign
static int sign(SkScalar x)
◆ close()
bool Convexicator::close |
( |
| ) |
|
|
inline |
Definition at line 2221 of file SkPath.cpp.
2221 {
2222
2223
2224
2225 return this->
addPt(fFirstPt) && this->addVec(fFirstVec);
2226 }
bool addPt(const SkPoint &pt)
◆ getFirstDirection()
The direction returned is only valid if the path is determined convex
Definition at line 2157 of file SkPath.cpp.
2157{ return fFirstDirection; }
◆ isFinite()
bool Convexicator::isFinite |
( |
| ) |
const |
|
inline |
Definition at line 2228 of file SkPath.cpp.
2228 {
2229 return fIsFinite;
2230 }
◆ reversals()
int Convexicator::reversals |
( |
| ) |
const |
|
inline |
Definition at line 2232 of file SkPath.cpp.
2232 {
2233 return fReversals;
2234 }
◆ setMovePt()
void Convexicator::setMovePt |
( |
const SkPoint & |
pt | ) |
|
|
inline |
Definition at line 2159 of file SkPath.cpp.
2159 {
2160 fFirstPt = fLastPt = pt;
2162 }
The documentation for this struct was generated from the following file: