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

DM-7987: Ambiguous conversion between spherical coordinates and unit vectors #10

Merged
merged 1 commit into from Nov 29, 2016

Conversation

kfindeisen
Copy link
Member

This patch makes explicit sphgeom's conventions for converting between vector and angular representations of a point on a sphere. It only formalizes existing behavior, so no client code should break. The conventions are documented at the class level rather than the method level, as each class has multiple conversion methods.

Copy link
Contributor

@smonkewitz smonkewitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Two minor nits to address (or not) as you see fit: this package has been using Unicode (utf-8) in the comments, and using the Unicode equivalents to ° (°) and → (→) would fit in better. For me at least, this is also way more readable when looking at raw source. Secondly, in other documentation for this package, 3-vectors are written using parentheses rather than angle brackets.

Thanks for improving the docs!

The LonLat and UnitVector3d classes are now required to conform to
specific coordinate conventions when converting between each other.
Making these conventions part of the specification increases the
number of classes that can delegate such coordinate conversions to
sphgeom. This change formalizes existing behavior, and will not break
client code.

The conventions are documented at the class level rather than the
method level, as each class has multiple methods that follow the same
conventions.
@kfindeisen kfindeisen merged commit 41ca9d9 into master Nov 29, 2016
@ktlim ktlim deleted the tickets/DM-7987 branch August 25, 2018 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants