C4 Engine
C4 Engine API Documentation

class CubicBezier2D

Defined in:  TSBezier.h
The CubicBezier2D class encapsulates a 2D cubic Bézier curve, which consists of four 2D control points.
Definition

class CubicBezier2D

Member Functions
CubicBezier2D::CalculateQuadraticApproximation Approximates a cubic Bézier curve with a set of quadratic Bézier curves.
Constructor

CubicBezier2D();

CubicBezier2D(const Point2D& a, const Point2D& b, const Point2D& c, const Point2D& d);

Parameters
a,b,c,d The control points of the Bézier curve.
Description
The CubicBezier2D class encapsulates the four control points of a 2D cubic Bézier curve.

The default constructor leaves the control points of the Bézier curve undefined.
See Also

Point2D