alexbol99 / flatten-js

Javascript library for 2d geometry
MIT License
535 stars 56 forks source link

`length` and `pointAtLength` for multiline #182

Open stanch opened 2 weeks ago

stanch commented 2 weeks ago

I have a multiline that consists of two segments and an arc (and potentially a more complex one in the future), and it would be great to be able to use length and pointAtLength for it, instead of manually going through the constituent parts.

A counter-argument could be that multilines can contain rays, which are infinite. However: