Class BezierCurve

Class Documentation

class BezierCurve

Class representing a cubic bezier spline curve.

Public Functions

BezierCurve(const Math::Point2D &p0, const Math::Point2D &p1, const Math::Point2D &p2, const Math::Point2D &p3)

Constructor

Parameters
  • p0 – control point

  • p1 – control point

  • p2 – control point

  • p3 – control point

Math::Point2D evaluate(double t)

Returns the value of the bezier

std::vector<Math::Point2D> decompose(int n)

Decomposes the bezier curve into n points