summaryrefslogtreecommitdiffstats
path: root/core/math/vector3.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-02-14 17:05:16 -0300
committerGitHub <noreply@github.com>2017-02-14 17:05:16 -0300
commit04a6d2789e65c41b616380fcb89d66c183918eaa (patch)
tree8beec0bfd954a7068566855aa970120283763b06 /core/math/vector3.cpp
parent78336990f4f6c36db2000d6097826bbe573eb016 (diff)
downloadredot-engine-04a6d2789e65c41b616380fcb89d66c183918eaa.tar.gz
Revert "Make nan==nan true for GDScript"
Diffstat (limited to 'core/math/vector3.cpp')
-rw-r--r--core/math/vector3.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/math/vector3.cpp b/core/math/vector3.cpp
index 7fdb54bb69..2ab5fa0465 100644
--- a/core/math/vector3.cpp
+++ b/core/math/vector3.cpp
@@ -176,17 +176,6 @@ Vector3 Vector3::cubic_interpolate(const Vector3& p_b,const Vector3& p_pre_a, co
return out;
}
# endif
-bool Vector3::nan_equals(const Vector3& p_v) const {
- return (x == p_v.x && y == p_v.y && z == p_v.z) ||
- (x == p_v.x && y == p_v.y && isnan(z) && isnan(p_v.z)) ||
- (x == p_v.x && isnan(y) && isnan(p_v.y) && z == p_v.z) ||
- (isnan(x) && isnan(p_v.x) && y == p_v.y && z == p_v.z) ||
- (x == p_v.x && isnan(y) && isnan(p_v.y) && isnan(z) && isnan(p_v.z)) ||
- (isnan(x) && isnan(p_v.x) && y == p_v.y && isnan(z) && isnan(p_v.z)) ||
- (isnan(x) && isnan(p_v.x) && isnan(y) && isnan(p_v.y) && z == p_v.z) ||
- (isnan(x) && isnan(p_v.x) && isnan(y) && isnan(p_v.y) && isnan(z) && isnan(p_v.z));
-}
-
Vector3::operator String() const {
return (rtos(x)+", "+rtos(y)+", "+rtos(z));