Module bevy::math::cubic_splines

Expand description

Provides types for building cubic splines for rendering curves and use with animation easing.

Structs§

  • A spline interpolated continuously across the nearest four control points. The curve does not pass through any of the control points.
  • A spline composed of a single cubic Bezier curve.
  • 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.
  • A collection of CubicSegments chained into a single parametric curve. Has domain [0, N) where N is the number of attached segments.
  • 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.
  • 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).
  • 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).
  • A spline interpolated linearly between the nearest 2 points.
  • A collection of RationalSegments chained into a single parametric curve.
  • 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§

Traits§

  • Implement this on cubic splines that can generate a cubic curve from their spline parameters.
  • Implement this on cubic splines that can generate a rational cubic curve from their spline parameters.