summaryrefslogtreecommitdiffstats
path: root/modules/mono/glue/Managed/Files/AABB.cs
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 /modules/mono/glue/Managed/Files/AABB.cs
parent1fed266bf5452b30376db62495f4985f6975f2c1 (diff)
downloadredot-engine-86922ff70ba533b376a6680f965f542894e8c614.tar.gz
Make is_equal_approx separate for structures
This commit adds exposed behavior for C#
Diffstat (limited to 'modules/mono/glue/Managed/Files/AABB.cs')
-rw-r--r--modules/mono/glue/Managed/Files/AABB.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/mono/glue/Managed/Files/AABB.cs b/modules/mono/glue/Managed/Files/AABB.cs
index 98a73382f4..6a4f785551 100644
--- a/modules/mono/glue/Managed/Files/AABB.cs
+++ b/modules/mono/glue/Managed/Files/AABB.cs
@@ -458,6 +458,11 @@ namespace Godot
return _position == other._position && _size == other._size;
}
+ public bool IsEqualApprox(AABB other)
+ {
+ return _position.IsEqualApprox(other._position) && _size.IsEqualApprox(other._size);
+ }
+
public override int GetHashCode()
{
return _position.GetHashCode() ^ _size.GetHashCode();