rstar icon indicating copy to clipboard operation
rstar copied to clipboard

Improve interoperability with other linear algebra crates

Open Stoeoef opened this issue 4 years ago • 0 comments

It would be nice if rstar had first class support for other geometry crates, e.g. nalgebra or cgmath.

Up to now, users either need to

  • Implement their own point type (boiler plate / cannot easily use third-party point types due to orphan rule)
  • Use the built in point type (like [f64; 2], has only limited functionality)

One promising path forward might be adding support for the mint crate crate. Adding Point impls for the mint types should allow to add them to an R-Tree directly. Both cgmath and nalgebra support mint already.

This issue originated from #25

Stoeoef avatar Mar 22 '20 10:03 Stoeoef