diff options
author | antonWetzel <anton.wetzel.mail@gmail.com> | 2022-08-08 17:05:55 +0200 |
---|---|---|
committer | antonWetzel <anton.wetzel.mail@gmail.com> | 2022-08-09 01:59:17 +0200 |
commit | 40a1d6d100d8a1823d3a939a7ad7350b36bcddbd (patch) | |
tree | 65b06f486f70150e7110b1ad1dde3aa2f398c858 /tests/core | |
parent | 7355dfb502dbae6f13fbe42a9feeadb57affac0e (diff) |
vector4 distance_squared_to and update csharp
Diffstat (limited to 'tests/core')
-rw-r--r-- | tests/core/math/test_vector4.h | 3 |
1 files changed, 3 insertions, 0 deletions
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") { |