Expand description
Provides types for building cubic splines for rendering curves and use with animation easing.
Structs§
- CubicB
Spline - A spline interpolated continuously across the nearest four control points. The curve does not necessarily pass through any of the control points.
- Cubic
Bezier - A spline composed of a single cubic Bezier curve.
- Cubic
Bezier Error - An error returned during cubic curve generation for cubic Bezier curves indicating that a segment of control points was not present.
- Cubic
Cardinal Spline - A spline interpolated continuously across the nearest four control points, with the position of
the curve specified at every control point and the tangents computed automatically. The associated
CubicCurve
has one segment between each pair of adjacent control points. - Cubic
Curve - A collection of
CubicSegment
s chained into a single parametric curve. It is aCurve
with domain[0, N]
, whereN
is its number of segments. - Cubic
Hermite - A spline interpolated continuously between the nearest two control points, with the position and velocity of the curve specified at both control points. This curve passes through all control points, with the specified velocity which includes direction and parametric speed.
- Cubic
Nurbs - Non-uniform Rational B-Splines (NURBS) are a powerful generalization of the
CubicBSpline
which can represent a much more diverse class of curves (like perfect circles and ellipses). - Cubic
Segment - A segment of a cubic curve, used to hold precomputed coefficients for fast interpolation.
It is a
Curve
with domain[0, 1]
. - Insufficient
Data Error - An error indicating that a spline construction didn’t have enough control points to generate a curve.
- Linear
Spline - A spline interpolated linearly between the nearest 2 points.
- Rational
Curve - A collection of
RationalSegment
s chained into a single parametric curve. It is aCurve
with domain[0, N]
, whereN
is the number of segments. - Rational
Segment - A segment of a rational cubic curve, used to hold precomputed coefficients for fast interpolation.
It is a
Curve
with domain[0, 1]
.
Enums§
- Cubic
Nurbs Error - Error during construction of
CubicNurbs
Traits§
- Cubic
Generator - Implement this on cubic splines that can generate a cubic curve from their spline parameters.
- Cyclic
Cubic Generator - Implement this on cubic splines that can generate a cyclic cubic curve from their spline parameters.
- Rational
Generator - Implement this on cubic splines that can generate a rational cubic curve from their spline parameters.