diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-08-11 16:12:27 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-10-08 13:25:08 +0800 |
commit | 5da515773d8edec988b7523ea97cdfd54c3fd16c (patch) | |
tree | 1107edc8f9bcff011b9bf789cf0e54bc9d46c28d /core/math/rect2.h | |
parent | 18177828ad97286ca88cbdcfb763c967858d051b (diff) | |
download | redot-engine-5da515773d8edec988b7523ea97cdfd54c3fd16c.tar.gz |
Add `is_finite` method for checking built-in types
Diffstat (limited to 'core/math/rect2.h')
-rw-r--r-- | core/math/rect2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/rect2.h b/core/math/rect2.h index 50dd2dc1df..9863405d8e 100644 --- a/core/math/rect2.h +++ b/core/math/rect2.h @@ -207,6 +207,7 @@ struct _NO_DISCARD_ Rect2 { } bool is_equal_approx(const Rect2 &p_rect) const; + bool is_finite() const; bool operator==(const Rect2 &p_rect) const { return position == p_rect.position && size == p_rect.size; } bool operator!=(const Rect2 &p_rect) const { return position != p_rect.position || size != p_rect.size; } |