mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Implement Vector2i/3i/4i methods: distance_to and distance_squared_to
This commit is contained in:
parent
9957f1ad4e
commit
cb954c6bab
13 changed files with 168 additions and 0 deletions
|
|
@ -90,6 +90,12 @@ TEST_CASE("[Vector4i] Length methods") {
|
|||
CHECK_MESSAGE(
|
||||
vector2.length() == doctest::Approx(73.4846922835),
|
||||
"Vector4i length should work as expected.");
|
||||
CHECK_MESSAGE(
|
||||
vector1.distance_squared_to(vector2) == 3000,
|
||||
"Vector4i distance_squared_to should work as expected.");
|
||||
CHECK_MESSAGE(
|
||||
vector1.distance_to(vector2) == doctest::Approx(54.772255750517),
|
||||
"Vector4i distance_to should work as expected.");
|
||||
}
|
||||
|
||||
TEST_CASE("[Vector4i] Operators") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue