diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2019-10-14 16:33:45 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2019-10-14 16:46:54 -0400 |
commit | 86922ff70ba533b376a6680f965f542894e8c614 (patch) | |
tree | b99bc39067ce17ec257ad44199becdc61b69d3c2 /core/math/vector3.cpp | |
parent | 1fed266bf5452b30376db62495f4985f6975f2c1 (diff) | |
download | redot-engine-86922ff70ba533b376a6680f965f542894e8c614.tar.gz |
Make is_equal_approx separate for structures
This commit adds exposed behavior for C#
Diffstat (limited to 'core/math/vector3.cpp')
-rw-r--r-- | core/math/vector3.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/math/vector3.cpp b/core/math/vector3.cpp index ebc1599820..e3211c8fb1 100644 --- a/core/math/vector3.cpp +++ b/core/math/vector3.cpp @@ -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)); |