juergenpf / Geodesy

Other
29 stars 14 forks source link

Implement IEquatable<T> on IComparable<T> structs #3

Closed xperiandri closed 7 years ago

xperiandri commented 7 years ago

As GlobalCoordinates, Angle and some other structs can be checked for equality I think it will be reasonable to implement IEquatable as it only 1 additional method with trivial logic. IComparable equality is not the same as IEquatable equality. IComparable equality means that the order of two instances can be determined. While IEquatable equality means exact equality.

juergenpf commented 7 years ago

Thx, you're right. Will add it in one of the next drops.

juergenpf commented 7 years ago

I've implemented, will push soon (also to NuGet feed)