Cubic Bezier curve. More...
#include <MRBezier.h>
Public Types | |
using | VTraits = VectorTraits<V> |
using | T = typename VTraits::BaseType |
Public Member Functions | |
V | getPoint (T t) const |
computes point on the curve from parameter value | |
Static Public Member Functions | |
static std::array< T, 4 > | getWeights (T t) |
computes weights of every control point for given parameter value, the sum of all weights is equal to 1 | |
Public Attributes | |
V | p [4] |
4 control points | |
Static Public Attributes | |
static constexpr int | elements = VTraits::size |
Cubic Bezier curve.
using MR::CubicBezierCurve< V >::T = typename VTraits::BaseType |
using MR::CubicBezierCurve< V >::VTraits = VectorTraits<V> |
|
inline |
computes point on the curve from parameter value
|
inlinestatic |
computes weights of every control point for given parameter value, the sum of all weights is equal to 1
|
staticconstexpr |
V MR::CubicBezierCurve< V >::p[4] |
4 control points