Flutter Engine
The Flutter Engine
|
#include <SkCubicClipper.h>
Public Member Functions | |
SkCubicClipper () | |
void | setClip (const SkIRect &clip) |
bool | clipCubic (const SkPoint src[4], SkPoint dst[4]) |
Static Public Member Functions | |
static bool | ChopMonoAtY (const SkPoint pts[4], SkScalar y, SkScalar *t) |
This class is initialized with a clip rectangle, and then can be fed cubics, which must already be monotonic in Y.
In the future, it might return a series of segments, allowing it to clip also in X, to ensure that all segments fit in a finite coordinate system.
Definition at line 24 of file SkCubicClipper.h.
SkCubicClipper::SkCubicClipper | ( | ) |
Definition at line 16 of file SkCubicClipper.cpp.
Definition at line 26 of file SkCubicClipper.cpp.
Definition at line 109 of file SkCubicClipper.cpp.
void SkCubicClipper::setClip | ( | const SkIRect & | clip | ) |
Definition at line 20 of file SkCubicClipper.cpp.