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 bbox to line-segment #632

Merged
merged 2 commits into from
Mar 26, 2017
Merged

Add bbox to line-segment #632

merged 2 commits into from
Mar 26, 2017

Conversation

DenisCarriere
Copy link
Member

Using @turf/line-segment would usually (95%) be paired with RBush.

Therefor adding bbox to line segments will greatly speed up any indexes created from RBush.

Very minimal performance decrease to add bbox since the bbox only needs to be calculated from two coordinates (previous & current coord).

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Have read How To Contribute.
  • Run npm test at the sub modules where changes have occured.
  • Run npm run lint to ensure code style at the turf module level.

@DenisCarriere DenisCarriere merged commit 4513dfe into master Mar 26, 2017
@DenisCarriere DenisCarriere deleted the line-segment branch March 26, 2017 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant