Module adaptors

Source
Available on crate feature curve only.
Expand description

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

Structs§

ChainCurve
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.
ConstantCurve
A curve with a constant value over its domain.
ContinuationCurve
The curve that results from chaining two curves.
CurveReparamCurve
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.
ForeverCurve
The curve that results from repeating a curve forever.
FunctionCurve
A curve defined by a function together with a fixed domain.
GraphCurve
A curve that is the graph of another curve over its parameter space. Curves of this type are produced by Curve::graph.
LinearReparamCurve
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.
MapCurve
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.
PingPongCurve
The curve that results from chaining a curve with its reversed version. The transition point is guaranteed to make no jump.
ReparamCurve
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.
RepeatCurve
The curve that results from repeating a curve N times.
ReverseCurve
The curve that results from reversing another.
ZipCurve
A curve that combines the output data from two constituent curves into a tuple output. Curves of this type are produced by Curve::zip.