CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
Easing::Bezier Class Reference

Cubic Bezier curve. More...

#include <Easing>

Public Member Functions

 Bezier (const Point &a, const Point &b)
 Create a cubic Bezier curve starting at {0, 0} and ending at {1, 1} with control points a and b.
 
 Bezier (double xa, double ya, double xb, double yb)
 Create a cubic Bezier curve starting at {0, 0} and ending at {1, 1} with control points (xa, ya) and (xb, yb)
 
Point a () const
 First control point.
 
Point b () const
 Second control point.
 
double operator() (double t) const
 Evaluate.
 

Detailed Description

Cubic Bezier curve.

Constructor & Destructor Documentation

◆ Bezier() [1/2]

Bezier ( const Point & a,
const Point & b )

Create a cubic Bezier curve starting at {0, 0} and ending at {1, 1} with control points a and b.

◆ Bezier() [2/2]

Bezier ( double xa,
double ya,
double xb,
double yb )

Create a cubic Bezier curve starting at {0, 0} and ending at {1, 1} with control points (xa, ya) and (xb, yb)

Member Function Documentation

◆ a()

Point a ( ) const

First control point.

◆ b()

Point b ( ) const

Second control point.

◆ operator()()

double operator() ( double t) const

Evaluate.