From 6b33f5d7e5386c98a42fa962bebae0ef20f156fa Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Sun, 26 Jan 2014 04:59:13 +1100 Subject: [PATCH] Remove unnecessary parentheses --- src/cgmath/sphere.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cgmath/sphere.rs b/src/cgmath/sphere.rs index b2f6643..53808e4 100644 --- a/src/cgmath/sphere.rs +++ b/src/cgmath/sphere.rs @@ -41,7 +41,7 @@ impl Intersect>> for (Sphere, Ray3) { let tca = l.dot(&r.direction); if tca < cast(0.0) { return None; } let d2 = l.dot(&l) - tca*tca; - if (d2 > s.radius*s.radius) { return None; } + if d2 > s.radius*s.radius { return None; } let thc = num::sqrt(s.radius*s.radius - d2); Some(r.origin.add_v(&r.direction.mul_s(tca - thc))) }