aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-01-22 16:11:10 +0100
committerCrozet Sébastien <developer@crozet.re>2021-01-22 16:11:10 +0100
commitaa838279a69cc287291d9079f1b82114f1339d7a (patch)
treecb6143c002c7771428261dc4847ea3b24e209b6b
parentd9ca11834e6fa4454231198f98f6403ff4280ca2 (diff)
downloadrapier-aa838279a69cc287291d9079f1b82114f1339d7a.tar.gz
rapier-aa838279a69cc287291d9079f1b82114f1339d7a.tar.bz2
rapier-aa838279a69cc287291d9079f1b82114f1339d7a.zip
Minor code simplification for the 3D heightfield example.
-rw-r--r--examples3d/heightfield3.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples3d/heightfield3.rs b/examples3d/heightfield3.rs
index bc2ac98..7bf4061 100644
--- a/examples3d/heightfield3.rs
+++ b/examples3d/heightfield3.rs
@@ -27,7 +27,7 @@ pub fn init_world(testbed: &mut Testbed) {
// NOTE: make sure we use the sin/cos from simba to ensure
// cross-platform determinism of the example when the
// enhanced_determinism feature is enabled.
- <f32 as ComplexField>::sin(x) + <f32 as ComplexField>::cos(z)
+ ComplexField::sin(x) + ComplexField::cos(z)
}
});