Rename center method to get_center in Plane.

This commit is contained in:
Raul Santos 2023-01-15 16:51:43 +01:00
parent 9711abe787
commit 7560340ef6
No known key found for this signature in database
GPG key ID: B532473AE3A803E4
6 changed files with 12 additions and 12 deletions

View file

@ -87,8 +87,8 @@ TEST_CASE("[Plane] Plane-point operations") {
const Plane y_facing_plane = Plane(0, 1, 0, 4);
CHECK_MESSAGE(
plane.center().is_equal_approx(Vector3(32 * 3, 22 * 3, 16 * 3)),
"center() should return a vector pointing to the center of the plane.");
plane.get_center().is_equal_approx(Vector3(32 * 3, 22 * 3, 16 * 3)),
"get_center() should return a vector pointing to the center of the plane.");
CHECK_MESSAGE(
y_facing_plane.is_point_over(Vector3(0, 5, 0)),