Definition at line 252 of file SkPolyUtils.cpp.
◆ checkIntersection()
Definition at line 269 of file SkPolyUtils.cpp.
270 {
276 *t = 0;
277 return true;
278 }
279 }
280
282 }
static bool compute_intersection(const OffsetSegment &s0, const OffsetSegment &s1, SkPoint *p, SkScalar *s, SkScalar *t)
static bool EqualsWithinTolerance(const SkPoint &p1, const SkPoint &p2)
◆ computeCrossingDistance()
Definition at line 287 of file SkPolyUtils.cpp.
287 {
292
295
297 }
298
301 if (localS < 0) {
302 localS = -localS;
303 } else {
305 }
306
308 localS *= v0.
dot(v0);
309
310 return localS;
311 }
constexpr SkScalar kCrossTolerance
static bool SkScalarNearlyZero(SkScalar x, SkScalar tolerance=SK_ScalarNearlyZero)
float dot(const SkVector &vec) const
float cross(const SkVector &vec) const
◆ init()
void OffsetEdge::init |
( |
uint16_t |
start = 0 , |
|
|
uint16_t |
end = 0 |
|
) |
| |
|
inline |
◆ fEnd
uint16_t OffsetEdge::fEnd |
◆ fIndex
uint16_t OffsetEdge::fIndex |
◆ fIntersection
◆ fNext
◆ fOffset
◆ fPrev
◆ fTValue
The documentation for this struct was generated from the following file: