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 pass through any of the control points.
- Cubic
Bezier - A spline composed of a single cubic Bezier curve.
- 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
CubicCurvehas one segment between each pair of adjacent control points. - Cubic
Curve - A collection of
CubicSegments chained into a single parametric curve. Has domain[0, N)whereNis the number of attached 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
CubicBSplinewhich 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.
Can be evaluated as a parametric curve over the domain
[0, 1). - Linear
Spline - A spline interpolated linearly between the nearest 2 points.
- Rational
Curve - A collection of
RationalSegments chained into a single parametric curve. - Rational
Segment - A segment of a rational cubic curve, used to hold precomputed coefficients for fast interpolation.
Can be evaluated as a parametric curve over the domain
[0, knot_span).
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.
- Rational
Generator - Implement this on cubic splines that can generate a rational cubic curve from their spline parameters.