summaryrefslogtreecommitdiffstats
path: root/modules/mono/glue/Managed/Files/Vector2.cs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mono/glue/Managed/Files/Vector2.cs')
-rw-r--r--modules/mono/glue/Managed/Files/Vector2.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/mono/glue/Managed/Files/Vector2.cs b/modules/mono/glue/Managed/Files/Vector2.cs
index 0daa94057e..70d6cd382a 100644
--- a/modules/mono/glue/Managed/Files/Vector2.cs
+++ b/modules/mono/glue/Managed/Files/Vector2.cs
@@ -458,6 +458,11 @@ namespace Godot
return Mathf.IsEqualApprox(x, other.x) && Mathf.IsEqualApprox(y, other.y);
}
+ public bool IsEqualApprox(Vector2 other)
+ {
+ return Mathf.IsEqualApprox(x, other.x) && Mathf.IsEqualApprox(y, other.y);
+ }
+
public override int GetHashCode()
{
return y.GetHashCode() ^ x.GetHashCode();