Implementation of the PKTree spatial index data structure
The reccomended way to import this module is:
import qualified Data.PKTree as PKTree pkInsert = insert K [rx,ry,..]
- type Point = [Float]
- type Rectangle = (Point, Point)
- type PKTree a = Tree (Node a)
- data Node a
- cell :: Rectangle -> PKTree a
- pointCell :: Point -> a -> PKTree a
- rect :: PKTree a -> Rectangle
- insert :: Eq a => Int -> [Int] -> PKTree a -> Point -> a -> PKTree a
- radiusSearch :: Point -> Float -> PKTree a -> [(Point, a)]