1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Make is_equal_approx separate for structures

This commit adds exposed behavior for C#
This commit is contained in:
Aaron Franke
2019-10-14 16:33:45 -04:00
parent 1fed266bf5
commit 86922ff70b
31 changed files with 118 additions and 16 deletions

View File

@@ -149,6 +149,11 @@ Basis Vector3::to_diagonal_matrix() const {
0, 0, z);
}
bool Vector3::is_equal_approx(const Vector3 &p_v) const {
return Math::is_equal_approx(x, p_v.x) && Math::is_equal_approx(y, p_v.y) && Math::is_equal_approx(z, p_v.z);
}
Vector3::operator String() const {
return (rtos(x) + ", " + rtos(y) + ", " + rtos(z));