diff options
| author | Juan Linietsky | 2017-02-14 17:05:16 -0300 |
|---|---|---|
| committer | GitHub | 2017-02-14 17:05:16 -0300 |
| commit | 04a6d2789e65c41b616380fcb89d66c183918eaa (patch) | |
| tree | 8beec0bfd954a7068566855aa970120283763b06 /core/math/math_2d.cpp | |
| parent | 78336990f4f6c36db2000d6097826bbe573eb016 (diff) | |
| download | godot-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.cpp | 7 |
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) ); |
