From 4202cc8f2ee47e9b6a307cdaf95d82665e6bee55 Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Sat, 29 Mar 2025 15:39:59 -0300 Subject: [PATCH] Code reformatting --- src/raycasting/plane.rs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) 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);