spatial

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package spatial provides simple range queries over 2D points.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nearest

func Nearest(ox, oy, maxDist float64, each func(yield func(x, y float64, id uint64))) (id uint64, ok bool)

Nearest returns the id of the closest point to (ox,oy) within maxDist. each should call yield(x, y, id) for every candidate.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL