You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But currently RTree in operations like RTree::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 within i32. This is somewhat inefficient.
The text was updated successfully, but these errors were encountered:
stepancheg
changed the title
Need to use different scalars for Point::Scalar and square
Need to use different types for Point::Scalar and square
Dec 24, 2023
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.The text was updated successfully, but these errors were encountered: