-
-
Save krk/5a04887c50564763a3aa8afb2db16a09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Coordinate operator +(Coordinate c1, Coordinate c2) | |
{ | |
DecimalDegreeCoordinate dd1 = (DecimalDegreeCoordinate)TypeDescriptor.GetConverter(c1).ConvertTo(c1, typeof(DecimalDegreeCoordinate)); | |
DecimalDegreeCoordinate dd2 = (DecimalDegreeCoordinate)TypeDescriptor.GetConverter(c2).ConvertTo(c2, typeof(DecimalDegreeCoordinate)); | |
return new DecimalDegreeCoordinate(dd1.lat + dd2.lat, dd1.lon + dd2.lon); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment