summaryrefslogtreecommitdiffstats
path: root/core/math/rect2.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2019-10-14 16:33:45 -0400
committerAaron Franke <arnfranke@yahoo.com>2019-10-14 16:46:54 -0400
commit86922ff70ba533b376a6680f965f542894e8c614 (patch)
treeb99bc39067ce17ec257ad44199becdc61b69d3c2 /core/math/rect2.h
parent1fed266bf5452b30376db62495f4985f6975f2c1 (diff)
downloadredot-engine-86922ff70ba533b376a6680f965f542894e8c614.tar.gz
Make is_equal_approx separate for structures
This commit adds exposed behavior for C#
Diffstat (limited to 'core/math/rect2.h')
-rw-r--r--core/math/rect2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/rect2.h b/core/math/rect2.h
index f58756ee40..71221ffb1b 100644
--- a/core/math/rect2.h
+++ b/core/math/rect2.h
@@ -153,6 +153,7 @@ struct Rect2 {
return true;
}
+ bool is_equal_approx(const Rect2 &p_rect) 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; }