Closed stepancheg closed 11 months ago
If scalar is i32, distance squared is i64.
i32
i64
But currently RTree in operations like RTree::locate_within_distance assumes distance squared is the same type as scalar.
RTree
RTree::locate_within_distance
The workaround is for user to store data keyed by i64 when data fits within i32. This is somewhat inefficient.
Duplicate of #48
If scalar is
i32
, distance squared isi64
.But currently
RTree
in operations likeRTree::locate_within_distance
assumes distance squared is the same type as scalar.The workaround is for user to store data keyed by
i64
when data fits withini32
. This is somewhat inefficient.