Code reformatting

This commit is contained in:
Matthew Gordon 2025-03-29 15:39:59 -03:00
parent 6e3a5dd1d8
commit 4202cc8f2e
1 changed files with 3 additions and 15 deletions

View File

@ -79,21 +79,9 @@ impl HasBoundingBox for Plane {
let p0 = self.normal * self.distance_from_origin; let p0 = self.normal * self.distance_from_origin;
let f = |v: Vec3<f64>| { let f = |v: Vec3<f64>| {
Vec3::new( Vec3::new(
if v.x() == 0.0 { if v.x() == 0.0 { 0.0 } else { f64::INFINITY },
0.0 if v.y() == 0.0 { 0.0 } else { f64::INFINITY },
} else { if v.z() == 0.0 { 0.0 } else { f64::INFINITY },
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); let tangent = f(self.tangent);