Update test to use Plane::new

This commit is contained in:
Jarrod Doyle 2023-09-19 19:41:02 +01:00
parent 0c6fd180f3
commit 73495fcde6
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 1 additions and 4 deletions

View File

@ -141,10 +141,7 @@ mod plane_tests {
let point = glam::vec3(1.0, 1.0, 0.0); let point = glam::vec3(1.0, 1.0, 0.0);
let normal = glam::vec3(1.0, 1.0, 1.0); let normal = glam::vec3(1.0, 1.0, 1.0);
let expected = Plane { let expected = Plane::new(normal, 2.0);
normal,
offset: 2.0,
};
assert_eq!(Plane::from_point_normal(point, normal), expected); assert_eq!(Plane::from_point_normal(point, normal), expected);
} }