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 Nov 2, 2022
1 parent dd9d7df commit 4157bee
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 4157bee

Please sign in to comment.