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); }