rtree

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RTree

type RTree interface {
	// Search will perform an intersection search of the given
	// rectangle and return any rectangles that intersect.
	Search(Rectangle) Rectangles
	// Len returns in the number of items in the RTree.
	Len() uint64
	// Dispose will clean up any objects used by the RTree.
	Dispose()
	// Delete will remove the provided rectangles from the RTree.
	Delete(...Rectangle)
	// Insert will add the provided rectangles to the RTree.
	Insert(...Rectangle)
}

RTree defines an object that can be returned from any subpackage of this package.

type Rectangle

type Rectangle interface {
	// LowerLeft describes the lower left coordinate of this rectangle.
	LowerLeft() (int32, int32)
	// UpperRight describes the upper right coordinate of this rectangle.
	UpperRight() (int32, int32)
}

Rectangle describes a two-dimensional bound.

type Rectangles

type Rectangles []Rectangle

Rectangles is a typed list of Rectangle.

Directories

Path Synopsis
Package hilbert implements a Hilbert R-tree based on PALM principles to improve multithreaded performance.
Package hilbert implements a Hilbert R-tree based on PALM principles to improve multithreaded performance.

Jump to

Keyboard shortcuts

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