Closed grovesNL closed 4 months ago
I thought I might be able to use AsRef
and ExactSizeIterator
here instead (or even just as an iterator adapter with IntoIterator
), but I wasn't sure how to make the types work out with CoordsIter
, so I've kept it as two separate implementations (array and slices) for now
Thanks! Will wait to see if others have feedback
[X] I added an entry to
CHANGES.md
if knowledge of this change could be valuable to users.I found this useful so I could use
extremes
etc. on some kind of arbitrary coordinate list I'm already storing somewhere.Many of the coordinate lists I'm using could technically form triangles but the points could be colinear or identical, so they don't follow the guarantees for
Triangle
. I also don't want to useMultiPoint
for these because it would require creating anotherVec
(potentially thousands in my case).I'm not sure if it makes sense to implement this for arrays and slices of
Coord
,Point
, or both. For now it's only implemented at theCoord
level.