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