georust/rstar

Need to use different types for Point::Scalar and square

Closed this issue · 1 comments

If scalar is i32, distance squared is i64.

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.

Duplicate of #48