Expand description
Utilities for turning values within a certain range into different curves.
Structs§
- Linear
Evaluator Evaluatorfor linear values. That is, there’s no curve to the value mapping.- Power
Evaluator Evaluatorwith an exponent curve. The value will grow according to itspowerparameter.- Reflect
Evaluator - A type generated by the #reflect_trait macro for the
Evaluatortrait. - Sigmoid
Evaluator Evaluatorwith a “Sigmoid”, or “S-like” curve.
Traits§
- Evaluator
- Trait that any evaluators must implement. Must return an
f32value between0.0..=100.0.