diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2017-02-14 17:05:16 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-14 17:05:16 -0300 |
| commit | 04a6d2789e65c41b616380fcb89d66c183918eaa (patch) | |
| tree | 8beec0bfd954a7068566855aa970120283763b06 /core/math/math_2d.h | |
| parent | 78336990f4f6c36db2000d6097826bbe573eb016 (diff) | |
| download | redot-engine-04a6d2789e65c41b616380fcb89d66c183918eaa.tar.gz | |
Revert "Make nan==nan true for GDScript"
Diffstat (limited to 'core/math/math_2d.h')
| -rw-r--r-- | core/math/math_2d.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/math/math_2d.h b/core/math/math_2d.h index 6dd8799ba2..a24c4266ee 100644 --- a/core/math/math_2d.h +++ b/core/math/math_2d.h @@ -133,7 +133,6 @@ struct Vector2 { bool operator<(const Vector2& p_vec2) const { return (x==p_vec2.x)?(y<p_vec2.y):(x<p_vec2.x); } bool operator<=(const Vector2& p_vec2) const { return (x==p_vec2.x)?(y<=p_vec2.y):(x<=p_vec2.x); } - bool nan_equals(const Vector2& p_vec2) const; real_t angle() const; void set_rotation(real_t p_radians) { @@ -320,8 +319,6 @@ struct Rect2 { bool operator==(const Rect2& p_rect) const { return pos==p_rect.pos && size==p_rect.size; } bool operator!=(const Rect2& p_rect) const { return pos!=p_rect.pos || size!=p_rect.size; } - bool nan_equals(const Rect2& p_rect) const { return pos.nan_equals(p_rect.pos) && size == p_rect.size; } - inline Rect2 grow(real_t p_by) const { Rect2 g=*this; |
