Show All |
Enums
Public Member Functions
-
Path2d ()
-
Path2d (const BSpline2f &spline, float subdivisionStep=0.01f)
-
voidlineTo (const vec2 &p)
-
voidlineTo (float x, float y)
-
voidquadTo (const vec2 &p1, const vec2 &p2)
-
voidquadTo (float x1, float y1, float x2, float y2)
-
voidcurveTo (const vec2 &p1, const vec2 &p2, const vec2 &p3)
-
voidcurveTo (float x1, float y1, float x2, float y2, float x3, float y3)
-
voidarc (const vec2 ¢er, float radius, float startRadians, float endRadians, bool forward=true)
-
voidarc (float centerX, float centerY, float radius, float startRadians, float endRadians, bool forward=true)
-
voidarcTo (const vec2 &p, const vec2 &t, float radius)
-
voidarcTo (float x, float y, float tanX, float tanY, float radius)
-
boolisClosed () const
-
boolempty () const
-
voidclear ()
-
size_tgetNumSegments () const
-
size_tgetNumPoints () const
-
std::vector< vec2 >subdivide (float approximationScale=1.0f) const
-
const std::vector< vec2 > &getPoints () const
-
std::vector< vec2 > &getPoints ()
-
const vec2 &getPoint (size_t point) const
-
vec2 &getPoint (size_t point)
-
const vec2 &getCurrentPoint () const
-
voidsetPoint (size_t index, const vec2 &p)
-
getSegmentType (size_t segment) const
-
const std::vector< SegmentType > &getSegments () const
-
std::vector< SegmentType > &getSegments ()
-
voidremoveSegment (size_t segment)
Static Public Member Functions
-
intcalcQuadraticBezierMonotoneRegions (const vec2 p[3], float resultT[2])
-
vec2calcQuadraticBezierPos (const vec2 p[3], float t)
-
vec2calcQuadraticBezierDerivative (const vec2 p[3], float t)
-
intcalcCubicBezierMonotoneRegions (const vec2 p[4], float resultT[4])
-
vec2calcCubicBezierPos (const vec2 p[4], float t)
-
vec2calcCubicBezierDerivative (const vec2 p[4], float t)