style: fix style
This commit is contained in:
parent
ab532fde73
commit
b0ce954618
@ -120,14 +120,14 @@ impl Ray3d {
|
|||||||
let denominator = plane.normal.dot(*self.direction);
|
let denominator = plane.normal.dot(*self.direction);
|
||||||
if ops::abs(denominator) > f32::EPSILON {
|
if ops::abs(denominator) > f32::EPSILON {
|
||||||
let distance = (plane_origin - self.origin).dot(*plane.normal) / denominator;
|
let distance = (plane_origin - self.origin).dot(*plane.normal) / denominator;
|
||||||
if distance > f32::EPSILON {
|
if distance > f32::EPSILON
|
||||||
if match plane_hit_mode {
|
&& match plane_hit_mode {
|
||||||
PlaneIntersectionMode::Both => true,
|
PlaneIntersectionMode::Both => true,
|
||||||
PlaneIntersectionMode::FrontFaceOnly => denominator < 0.0,
|
PlaneIntersectionMode::FrontFaceOnly => denominator < 0.0,
|
||||||
PlaneIntersectionMode::BackFaceOnly => denominator > 0.0,
|
PlaneIntersectionMode::BackFaceOnly => denominator > 0.0,
|
||||||
} {
|
|
||||||
return Some(distance);
|
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
return Some(distance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None
|
None
|
||||||
|
Loading…
Reference in New Issue
Block a user