|
constexpr | PolynomialSpline (const VecType< T, N > pts[4]) |
| Construct a cubic polynomial spline from an array of coefficients.
|
|
constexpr | PolynomialSpline (VecType< T, N > k0, VecType< T, N > k1, VecType< T, N > k2, VecType< T, N > k3) |
| Construct a cubic polynomial spline from coefficients.
|
|
constexpr VecType< T, N > | acceleration (T s) const |
| Compute the second derivative (acceleration) of the spline at a given parameter value.
|
|
Rect< T, N > | bounds () const |
| Compute the bounding box of the spline.
|
|
constexpr VecType< T, N > * | control_points () |
| Get an array of the four control points.
|
|
constexpr const VecType< T, N > * | control_points () const |
| Get a const array of the four control points.
|
|
template<CubicSplineObject< T, N > Spline> |
constexpr | operator Spline () const |
| Convert to another type of cubic spline.
|
|
constexpr VecType< T, N > | operator() (T s) const |
| Evaluate the spline at a given parameter value.
|
|
constexpr VecType< T, N > | velocity (T s) const |
| Compute the derivative (velocity) of the spline at a given parameter value.
|
|
template<typename T, index_t N>
class geom::PolynomialSpline< T, N >
A cubic polynomial spline.
PolynomialSplines store the coefficients of the polynomial directly. They are more efficient to evaluate than other cubic splines, but are not as convenient to work with.
If evaluating a spline many times, it is more efficient to convert it to a PolynomialSpline first.