You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Make is_equal_approx separate for structures
This commit adds exposed behavior for C#
This commit is contained in:
@@ -357,6 +357,11 @@ namespace Godot
|
||||
return x.Equals(other.x) && y.Equals(other.y) && origin.Equals(other.origin);
|
||||
}
|
||||
|
||||
public bool IsEqualApprox(Transform2D other)
|
||||
{
|
||||
return x.IsEqualApprox(other.x) && y.IsEqualApprox(other.y) && origin.IsEqualApprox(other.origin);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return x.GetHashCode() ^ y.GetHashCode() ^ origin.GetHashCode();
|
||||
|
||||
Reference in New Issue
Block a user