1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

[Mono] Approximate equality

This commit is contained in:
Aaron Franke
2019-04-01 18:13:38 -04:00
parent 7f7d97f536
commit c577ec6ae4
7 changed files with 53 additions and 34 deletions

View File

@@ -200,7 +200,7 @@ namespace Godot
public bool Equals(Plane other)
{
return _normal == other._normal && D == other.D;
return _normal == other._normal && Mathf.IsEqualApprox(D, other.D);
}
public override int GetHashCode()