Skip to content

Commit

Permalink
fix math traits for interpolate on emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
djsell authored and Razaekel committed Dec 4, 2022
1 parent 440fd2c commit 7ad5b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/interpolate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ where
#[inline]
pub(crate) fn linear<T>(a: T, b: T, x: T) -> T
where
T: MulAdd<Output = T> + Sub<Output = T> + Copy,
T: Mul<Output = T> + Add<Output = T> + Sub<Output = T> + Copy,
{
(x * (b - a)) + a
}
Expand Down

0 comments on commit 7ad5b86

Please sign in to comment.