Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bearing must be between 0 and 360 degrees #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rbsns
Copy link

@rbsns rbsns commented Dec 29, 2016

BearingTo returning negative values:

SBCT := geo.NewPoint(-25.5316666666667, -49.1761111111111)
KJFK := geo.NewPoint(40.63980103, -73.77890015)
bearing := SBCT.BearingTo(KJFK)
log.Println("Bearing:", bearing)
// got -19.643493, expected 340.3565066777242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant