bevy_math::curve

Module adaptors

source
Expand description

Adaptors used by the Curve API for transforming and combining curves together.

Structs§

  • The curve that results from chaining one curve with another. The second curve is effectively reparametrized so that its start is at the end of the first.
  • A curve with a constant value over its domain.
  • The curve that results from chaining two curves.
  • A curve that has been reparametrized by another curve, using that curve to transform the sample times before sampling. Curves of this type are produced by Curve::reparametrize_by_curve.
  • The curve that results from repeating a curve forever.
  • A curve defined by a function together with a fixed domain.
  • A curve that is the graph of another curve over its parameter space. Curves of this type are produced by Curve::graph.
  • A curve that has had its domain changed by a linear reparametrization (stretching and scaling). Curves of this type are produced by Curve::reparametrize_linear.
  • A curve whose samples are defined by mapping samples from another curve through a given function. Curves of this type are produced by Curve::map.
  • The curve that results from chaining a curve with its reversed version. The transition point is guaranteed to make no jump.
  • A curve whose sample space is mapped onto that of some base curve’s before sampling. Curves of this type are produced by Curve::reparametrize.
  • The curve that results from repeating a curve N times.
  • The curve that results from reversing another.
  • A curve that combines the output data from two constituent curves into a tuple output. Curves of this type are produced by Curve::zip.