aboutsummaryrefslogtreecommitdiff
path: root/core/math/math_2d.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-02-14 17:05:16 -0300
committerGitHub2017-02-14 17:05:16 -0300
commit04a6d2789e65c41b616380fcb89d66c183918eaa (patch)
tree8beec0bfd954a7068566855aa970120283763b06 /core/math/math_2d.cpp
parent78336990f4f6c36db2000d6097826bbe573eb016 (diff)
downloadgodot-04a6d2789e65c41b616380fcb89d66c183918eaa.tar.gz
godot-04a6d2789e65c41b616380fcb89d66c183918eaa.tar.zst
godot-04a6d2789e65c41b616380fcb89d66c183918eaa.zip
Revert "Make nan==nan true for GDScript"
Diffstat (limited to 'core/math/math_2d.cpp')
-rw-r--r--core/math/math_2d.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/math/math_2d.cpp b/core/math/math_2d.cpp
index 995cb0834..76eeece68 100644
--- a/core/math/math_2d.cpp
+++ b/core/math/math_2d.cpp
@@ -157,13 +157,6 @@ bool Vector2::operator!=(const Vector2& p_vec2) const {
return x!=p_vec2.x || y!=p_vec2.y;
}
-bool Vector2::nan_equals(const Vector2& p_vec2) const {
-
- return (x==p_vec2.x && y==p_vec2.y) ||
- (x==p_vec2.x && isnan(y) && isnan(p_vec2.y)) ||
- (isnan(x) && isnan(p_vec2.x) && y == p_vec2.y);
-}
-
Vector2 Vector2::floor() const {
return Vector2( Math::floor(x), Math::floor(y) );