30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
80 std::size_t m_pointCount;
109 std::size_t m_pointCount;
189 #ifndef DOXYGEN_SHOULD_SKIP_THIS
A compound curve.
Definition: Curves.h:122
CompoundCurve & lineTo(Vector2f p1)
Create a line from the last point to a new point.
QuadraticBezierCurve(Vector2f p0, Vector2f p1, Vector2f p2, std::size_t pointCount=20)
Constructor.
Vector< float, 2 > Vector2f
A float vector with 2 components.
Definition: Vector.h:741
CubicBezierCurve(Vector2f p0, Vector2f p1, Vector2f p2, Vector2f p3, std::size_t pointCount=30)
Constructor.
void close()
Close the curve.
CompoundCurve & setOrigin(Vector2f origin)
Set the first point of the curve.
A line.
Definition: Curves.h:39
CompoundCurve & quadraticCurveTo(Vector2f p1, Vector2f p2, std::size_t pointCount=20)
Create a quadratic Bézier curve from the last point to a new point.
constexpr Vector(T x, T y)
Constructor that takes 2 components.
Definition: Vector.h:293
A quadratic Bézier curve.
Definition: Curves.h:63
virtual std::size_t getPointCount() const override
Get the total number of points of the curve.
virtual std::size_t getPointCount() const override
Get the total number of points of the curve.
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the curve.
A curve is a one dimension object.
Definition: Curve.h:52
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the curve.
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the curve.
A cubic Bézier curve.
Definition: Curves.h:91
CompoundCurve & clear(Vector2f origin=Vector2f(0, 0))
Reset the curve to a new origin.
virtual std::size_t getPointCount() const override
Get the total number of points of the curve.
Line(Vector2f p0, Vector2f p1)
Constructor.
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the curve.
virtual std::size_t getPointCount() const override
Get the total number of points of the curve.
CompoundCurve & cubicCurveTo(Vector2f p1, Vector2f p2, Vector2f p3, std::size_t pointCount=30)
Create a cubic Bézier curve from the last point to a new point.
#define GF_API
Definition: Portability.h:35
CompoundCurve(Vector2f origin=Vector2f(0, 0))
Constructor.