示例#1
0
        /// <inheritdoc/>
        [Pure] public int CompareTo(GeographicHeightCoordinate other)
        {
            int c = Longitude.CompareTo(other.Longitude);

            if (0 != c)
            {
                return(c);
            }
            c = Latitude.CompareTo(other.Latitude);
            return(0 == c?Height.CompareTo(other.Height) : c);
        }
示例#2
0
 /// <inheritdoc/>
 [Pure] public bool Equals(GeographicHeightCoordinate other)
 {
     // ReSharper disable CompareOfFloatsByEqualityOperator
     return(Latitude == other.Latitude && Longitude == other.Longitude && Height == other.Height);
     // ReSharper restore CompareOfFloatsByEqualityOperator
 }