SyntaxFix
Write A Post
Hire A Developer
Questions
// Maybe a typo error ? We have an unused variable dlon in GetDirection, I assume
double y = Math.Sin(dlon) * Math.Cos(lat2); // cannot use degrees in Cos ?
should be
double y = Math.Sin(dlon) * Math.Cos(dlat);