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

lineSliceDist #12

Closed
mourner opened this issue Apr 24, 2016 · 0 comments
Closed

lineSliceDist #12

mourner opened this issue Apr 24, 2016 · 0 comments

Comments

@mourner
Copy link
Member

mourner commented Apr 24, 2016

In addition to lineSlice, it would be great to have a line slicing method that accepts two distance values:

var slice = ruler.lineSliceDist(line, 10, 20); // slice a part from 10km to 20km along the line

This would avoid doing pointOnLine calculations, making slicing faster for many cases where we know what part of the way we need.

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

No branches or pull requests

1 participant