You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the latitude is correct but the longitude is totally invalid. This appears to be caused by using negative longitudes. Negative latitudes seem to be correctly handled.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
But It feels dirty and I haven't unit tested it against all the other corner cases. It's effectively only undoing the mod % 360 if the longitude is clearly invalid.
What happened?
Consider the following example:
Assuming I'm starting at the point at the bottom left, I want to work out the point in the top right knowing the distance travelled and the azimuth.
To do, I use the following code:
The above code returns:
52.22952562862266 358.7412927899441
Note the latitude is correct but the longitude is totally invalid. This appears to be caused by using negative longitudes. Negative latitudes seem to be correctly handled.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: