Update test to use Plane::new
This commit is contained in:
parent
0c6fd180f3
commit
73495fcde6
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue