style: fix format
This commit is contained in:
parent
12be5be377
commit
d502a9e099
@ -252,20 +252,21 @@ mod tests {
|
|||||||
let ray = Ray3d::new(Vec3::ZERO, Dir3::Z);
|
let ray = Ray3d::new(Vec3::ZERO, Dir3::Z);
|
||||||
|
|
||||||
// Orthogonal, and test that ray intersects only the front face
|
// Orthogonal, and test that ray intersects only the front face
|
||||||
assert!(
|
assert!(ray
|
||||||
ray.intersect_plane(
|
.intersect_plane(
|
||||||
Vec3::Z,
|
Vec3::Z,
|
||||||
InfinitePlane3d::new(Vec3::Z),
|
InfinitePlane3d::new(Vec3::Z),
|
||||||
PlaneIntersectionMode::FrontFaceOnly
|
PlaneIntersectionMode::FrontFaceOnly
|
||||||
)
|
)
|
||||||
.is_none());
|
.is_none());
|
||||||
assert_eq!(ray
|
assert_eq!(
|
||||||
.intersect_plane(
|
ray.intersect_plane(
|
||||||
Vec3::Z,
|
Vec3::Z,
|
||||||
InfinitePlane3d::new(Vec3::NEG_Z),
|
InfinitePlane3d::new(Vec3::NEG_Z),
|
||||||
PlaneIntersectionMode::FrontFaceOnly
|
PlaneIntersectionMode::FrontFaceOnly
|
||||||
),
|
),
|
||||||
Some(1.0));
|
Some(1.0)
|
||||||
|
);
|
||||||
assert!(ray
|
assert!(ray
|
||||||
.intersect_plane(
|
.intersect_plane(
|
||||||
Vec3::NEG_Z,
|
Vec3::NEG_Z,
|
||||||
|
Loading…
Reference in New Issue
Block a user