Skip to content
Snippets Groups Projects
Unverified Commit f871d19e authored by alexander's avatar alexander Committed by Kat Marchán
Browse files

feat(evaluators): added inversed linear evaluator helper (#19)


Co-authored-by: default avatardoomy <2640792-_doomy@users.noreply.gitlab.com>
parent 748b30ae
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,9 @@ impl LinearEvaluator {
pub fn new() -> Self {
Self::new_full(0.0, 0.0, 1.0, 1.0)
}
pub fn new_inversed() -> Self {
Self::new_ranged(1.0, 0.0)
}
pub fn new_ranged(min: f32, max: f32) -> Self {
Self::new_full(min, 0.0, max, 1.0)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment