[Math] Add is_finite methods

This commit is contained in:
A Thousand Ships
2024-04-10 21:18:46 +02:00
parent b02124595f
commit d389171905
21 changed files with 58 additions and 0 deletions

View File

@@ -209,6 +209,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; }