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

Add segment.part method #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ianstormtaylor
Copy link

This adds a segment.part method for easily creating a new line segment that is a subset of an existing one. So for example to get the 2nd quarter you could do:

segment.part(0.25, 0.5)

Could also be called slice (or subset or section), let me know.

@ianstormtaylor ianstormtaylor changed the title add segment.part method Add segment.part method Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant