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

hexArea & edgeLength don't allow rad units #134

Open
MatixYo opened this issue Mar 24, 2022 · 1 comment
Open

hexArea & edgeLength don't allow rad units #134

MatixYo opened this issue Mar 24, 2022 · 1 comment

Comments

@MatixYo
Copy link

MatixYo commented Mar 24, 2022

The documentation clearly states that functions edgeLength and hexArea allow for second parameter to be UNIT.rads for edgeLength or UNIT.rads2 for hexArea. However when calling these functions:

h3.edgeLength(12, h3.UNIT.rads);
h3.hexArea(12, h3.UNIT.rads2)

an error is thrown:

Unknown unit: rads

Unknown unit: rads2

@nrabinowitz
Copy link
Collaborator

Thanks for logging. This is a documentation issue - at present, the core H3 library does not support edgeLengthRads or hexAreaRads2 (though cellArea supports rads2, which seems to be missing from the docs).

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

2 participants