-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add angle and destinationOnSegment #71
Conversation
Thank you @trandaison ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With a few unit tests, it'd be perfect.
@param {float}: heading in degrees, clockwise from 0 degrees north. | ||
@param {float}: distance in meters | ||
@param {float} heading: heading in degrees, clockwise from 0 degrees north. | ||
@param {float} distance: distance in meters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@mdartic |
dd0b3a5
to
c534c6e
Compare
Thanks @trandaison ! |
* Fix `interpolateOnLine()` doesn't return correct predecessor (#66, thanks @jb2b38) * Add `angle()` and `destinationOnSegment()` (#71, thanks @trandaison) * migrate mocha to 5.2.0 following instructions on npm audit
angle
: Returns the the angle of the given segment and the meridian in degrees, clockwise from 0 degrees east.destinationOnSegment
: Returns the point that is a distance and heading away from the given origin point and snap on the given segment.Please review and merge this one, thank you!