Ah so simple. Thanks!
I would also say that the KDTree implementation in that package might be better off returning an index into an array of shapes
I agree. I actually have a version that does this. I can submit a PR if interested. (I even submitted an issue about this here).
In the case of this particular package, I would caution you that we found in hindsight that working with a
Vector{<:Shape}
performs poorly.
Yup I remember talking about this awhile back. Here’s another thread with additional details if anyone else is curious.
Thanks, @stevengj!