CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
CubicBezier Class Reference

Cubic berzier curves. More...

#include <cc\CubicBezier>

Public Member Functions

 CubicBezier (Point a, Point b, Point c, Point d)
 Create a cubic bezier curve.
 
Point operator() (double t) const
 Compute the parametric curve at relative distance t.
 
double length (long steps=20) const
 Estimate the length of the curve.
 

Detailed Description

Cubic berzier curves.

Constructor & Destructor Documentation

◆ CubicBezier()

CubicBezier ( Point a,
Point b,
Point c,
Point d )

Create a cubic bezier curve.

Parameters
aStarting point
bFirst control point
cSecond control point
dEnd point

Member Function Documentation

◆ operator()()

Point operator() ( double t) const

Compute the parametric curve at relative distance t.

◆ length()

double length ( long steps = 20) const

Estimate the length of the curve.

Parameters
stepsumber of line segments to use in the quadrature of the curve