Skip to content

Commit

Permalink
minor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantChandrashekhar committed Jun 8, 2023
1 parent 96ada57 commit 7b11baa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GShark/Geometry/Point3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ public static Point3 Add(Vector3 vector, Point3 point)
/// <returns>true if the coordinates of the two points are exactly equal; otherwise false.</returns>
public static bool operator ==(Point3 a, Point3 b)
{
if (a == null && b == null)
return true;
if (a == null || b == null)
if (a is null && b is null)
return false;
if (a is null || b is null)
return false;
if (ReferenceEquals(a, b))
return true;
Expand Down

0 comments on commit 7b11baa

Please sign in to comment.