mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 06:45:13 +00:00
Update math_ext.rs
This commit is contained in:
parent
ec89ddf446
commit
a841cc845f
@ -78,7 +78,7 @@ impl MathExt for f32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn fract(self) -> f32 {
|
fn fract(self) -> f32 {
|
||||||
self - self.trunc()
|
self - self.floor()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn signum(self) -> f32 {
|
fn signum(self) -> f32 {
|
||||||
|
Loading…
Reference in New Issue
Block a user