BIG rewrite and changes (too many to list)

This commit is contained in:
Simon Gardling
2021-04-01 11:24:29 -04:00
parent dc2e46c51b
commit 4864ccae75
6 changed files with 42 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
#[inline(always)]
#[inline]
pub fn wrap(x: f32, max: f32) -> f32 {
x - max * ((x > max) as i32 as f32 - (x < 0.0_f32) as i32 as f32)
}