Module evaluators

Module evaluators 

Source
Expand description

Utilities for turning values within a certain range into different curves.

Structs§

LinearEvaluator
Evaluator for linear values. That is, there’s no curve to the value mapping.
PowerEvaluator
Evaluator with an exponent curve. The value will grow according to its power parameter.
ReflectEvaluator
A type generated by the #reflect_trait macro for the Evaluator trait.
SigmoidEvaluator
Evaluator with a “Sigmoid”, or “S-like” curve.

Traits§

Evaluator
Trait that any evaluators must implement. Must return an f32 value between 0.0..=100.0.