KiCad PCB EDA Suite
|
Generic cubic Bezier representation. More...
#include <bezier_curves.h>
Public Member Functions | |
BEZIER ()=default | |
constexpr | BEZIER (const VECTOR2< NumericType > &aStart, const VECTOR2< NumericType > &aC1, const VECTOR2< NumericType > &aC2, const VECTOR2< NumericType > &aEnd) |
constexpr VECTOR2< NumericType > | PointAt (double aT) const |
Evaluate the Bezier curve at a given t value. | |
Public Attributes | |
VECTOR2< NumericType > | Start |
VECTOR2< NumericType > | C1 |
VECTOR2< NumericType > | C2 |
VECTOR2< NumericType > | End |
Generic cubic Bezier representation.
Definition at line 94 of file bezier_curves.h.
|
inlineconstexpr |
Definition at line 99 of file bezier_curves.h.
|
inlineconstexpr |
Evaluate the Bezier curve at a given t value.
aT doesn't have to be in the range [0, 1], but if it's not, the point will not be on the curve.
aT | the t value to evaluate the curve at (0 = start, 1 = end) |
Definition at line 114 of file bezier_curves.h.
References BEZIER< NumericType >::C1, BEZIER< NumericType >::C2, BEZIER< NumericType >::End, and BEZIER< NumericType >::Start.
Definition at line 127 of file bezier_curves.h.
Referenced by BEZIER< NumericType >::PointAt(), and TransformEllipseToBeziers().
Definition at line 128 of file bezier_curves.h.
Referenced by BEZIER< NumericType >::PointAt(), and TransformEllipseToBeziers().
Definition at line 129 of file bezier_curves.h.
Referenced by BEZIER< NumericType >::PointAt(), and TransformEllipseToBeziers().
Definition at line 126 of file bezier_curves.h.
Referenced by BEZIER< NumericType >::PointAt(), and TransformEllipseToBeziers().