From 73495fcde6c53deaff8ae2b226d2350074896158 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Tue, 19 Sep 2023 19:41:02 +0100 Subject: [PATCH] Update test to use Plane::new --- csg/src/plane.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/csg/src/plane.rs b/csg/src/plane.rs index 787f383..a503ce2 100644 --- a/csg/src/plane.rs +++ b/csg/src/plane.rs @@ -141,10 +141,7 @@ mod plane_tests { let point = glam::vec3(1.0, 1.0, 0.0); let normal = glam::vec3(1.0, 1.0, 1.0); - let expected = Plane { - normal, - offset: 2.0, - }; + let expected = Plane::new(normal, 2.0); assert_eq!(Plane::from_point_normal(point, normal), expected); }