File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
sources/core/Stride.Core.Mathematics Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -684,8 +684,7 @@ public override readonly int GetHashCode()
684684 /// </returns>
685685 public readonly bool Equals ( Int2 other )
686686 {
687- return MathF . Abs ( other . X - X ) < MathUtil . ZeroTolerance &&
688- MathF . Abs ( other . Y - Y ) < MathUtil . ZeroTolerance ;
687+ return other . X == X && other . Y == Y ;
689688 }
690689
691690 /// <summary>
Original file line number Diff line number Diff line change @@ -760,9 +760,7 @@ public override readonly int GetHashCode()
760760 /// </returns>
761761 public readonly bool Equals ( Int3 other )
762762 {
763- return MathF . Abs ( other . X - X ) < MathUtil . ZeroTolerance &&
764- MathF . Abs ( other . Y - Y ) < MathUtil . ZeroTolerance &&
765- MathF . Abs ( other . Z - Z ) < MathUtil . ZeroTolerance ;
763+ return other . X == X && other . Y == Y && other . Z == Z ;
766764 }
767765
768766 /// <summary>
You can’t perform that action at this time.
0 commit comments