bevy_math

Module cubic_splines

Source
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 necessarily pass through any of the control points.
  • A spline composed of a single cubic Bezier curve.
  • An error returned during cubic curve generation for cubic Bezier curves indicating that a segment of control points was not present.
  • 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. It is a Curve with domain [0, N], where N is its number of 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. It is a Curve with domain [0, 1].
  • An error indicating that a spline construction didn’t have enough control points to generate a curve.
  • A spline interpolated linearly between the nearest 2 points.
  • A collection of RationalSegments chained into a single parametric curve. It is a Curve with domain [0, N], where N is the number of segments.
  • A segment of a rational cubic curve, used to hold precomputed coefficients for fast interpolation. It is a Curve with domain [0, 1].

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 cyclic cubic curve from their spline parameters.
  • Implement this on cubic splines that can generate a rational cubic curve from their spline parameters.