Code reformatting
This commit is contained in:
parent
6e3a5dd1d8
commit
4202cc8f2e
|
|
@ -79,21 +79,9 @@ impl HasBoundingBox for Plane {
|
|||
let p0 = self.normal * self.distance_from_origin;
|
||||
let f = |v: Vec3<f64>| {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue