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

Semicircles flipping coordinates #41

Open
samuelmr opened this issue Jul 18, 2020 · 0 comments
Open

Semicircles flipping coordinates #41

samuelmr opened this issue Jul 18, 2020 · 0 comments

Comments

@samuelmr
Copy link
Contributor

Running the following code (using Semicircles)

var myLocation1 = new Position.Location({
  :latitude => 38.856147,
  :longitude => -94.800953,
  :format => :degrees});
var mySC1 = new Semicircles.Coordinate(myLocation1);
System.println(myLocation1.toRadians());
System.println(mySC1.toRadians());

outputs

[0.678168, -1.654589]
[-0.678168, 1.654589]

Note that the signs of the coordinates are flipped. Is this somehow intentional?

It seems that the sign-flipping is consistent: in my tests negative values are always turned positive and vice versa.

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

No branches or pull requests

1 participant