From 40a1d6d100d8a1823d3a939a7ad7350b36bcddbd Mon Sep 17 00:00:00 2001 From: antonWetzel Date: Mon, 8 Aug 2022 17:05:55 +0200 Subject: vector4 distance_squared_to and update csharp --- tests/core/math/test_vector4.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/core') diff --git a/tests/core/math/test_vector4.h b/tests/core/math/test_vector4.h index 4b8759c0ca..ccf991401b 100644 --- a/tests/core/math/test_vector4.h +++ b/tests/core/math/test_vector4.h @@ -98,6 +98,9 @@ TEST_CASE("[Vector4] Length methods") { CHECK_MESSAGE( Math::is_equal_approx(vector1.distance_to(vector2), (real_t)54.772255750517), "Vector4 distance_to should work as expected."); + CHECK_MESSAGE( + Math::is_equal_approx(vector1.distance_squared_to(vector2), 3000), + "Vector4 distance_squared_to should work as expected."); } TEST_CASE("[Vector4] Limiting methods") { -- cgit v1.2.3