I think the wrapping could be fine ( its quite a nice bonus feature ) - but the getLengthAtIndexInterpolated example I gave might want to be accounted for. where one point is at the end of the line and one at the beginning - it could lead to funky results.