diff --git a/src/raycasting/plane.rs b/src/raycasting/plane.rs index 02ff3c1..fa9a072 100644 --- a/src/raycasting/plane.rs +++ b/src/raycasting/plane.rs @@ -79,21 +79,9 @@ impl HasBoundingBox for Plane { let p0 = self.normal * self.distance_from_origin; let f = |v: Vec3| { Vec3::new( - if v.x() == 0.0 { - 0.0 - } else { - f64::INFINITY - }, - if v.y() == 0.0 { - 0.0 - } else { - f64::INFINITY - }, - if v.z() == 0.0 { - 0.0 - } else { - f64::INFINITY - }, + if v.x() == 0.0 { 0.0 } else { f64::INFINITY }, + if v.y() == 0.0 { 0.0 } else { f64::INFINITY }, + if v.z() == 0.0 { 0.0 } else { f64::INFINITY }, ) }; let tangent = f(self.tangent);