From 11558e4b8158f2e91a257e3f44a8f97624baf85a Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 22 Apr 2023 13:44:05 +0900 Subject: [PATCH] change Vector3f's operator ==, != --- src/DotRecast.Core/Vector3f.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DotRecast.Core/Vector3f.cs b/src/DotRecast.Core/Vector3f.cs index 49cba79..c7b180a 100644 --- a/src/DotRecast.Core/Vector3f.cs +++ b/src/DotRecast.Core/Vector3f.cs @@ -91,14 +91,14 @@ namespace DotRecast.Core public static bool operator ==(Vector3f left, Vector3f right) { - return (left.x == right.x) - && (left.y == right.y) - && (left.z == right.z); + return left.x.Equals(right.x) + && left.y.Equals(right.y) + && left.z.Equals(right.z); } public static bool operator !=(Vector3f left, Vector3f right) { - return !(left == right); + return !left.Equals(right); } } } \ No newline at end of file