cgsrch

package
v7.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CGSearcher

type CGSearcher interface {
	Nearest(top float64, left float64) (quadtree.DataT, bool)
}

CGSearcher is the interface that wraps the Nearest method.

Nearest searches its list of objects and returns the closest to the given point.

func Create

func Create(crc *tc.CRConfig) (CGSearcher, error)

type Ths

type Ths struct {
	// contains filtered or unexported fields
}

Ths provides threadsafe access to a ThsT

func NewThs

func NewThs() Ths

NewThs creates a new Threadsafe Ths container.

func (Ths) Get

func (t Ths) Get() ThsT

Get returns the object held by the threadsafe container. The object MUST NOT be modified.

func (Ths) Set

func (t Ths) Set(v ThsT)

Set sets the given object in the threadsafe container. The given object MUST NOT be modified after calling this.

type ThsT

type ThsT CGSearcher

ThsT is the Threadsafe type used by this package. ThsT should usually be a pointer or an interface which holds a pointer.

Jump to

Keyboard shortcuts

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