findnear

package module
v0.0.0-...-d04f3f0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 29

README

findnear

find by function obj in 2d tile space

Documentation

Overview

2d tile space find functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func G_XYLenListInfo

func G_XYLenListInfo() string

Types

type DoFn

type DoFn func(int, int) bool

search from center

type XYLen

type XYLen struct {
	X, Y int
	L    float64
}

func (XYLen) IsSamePos

func (xyl XYLen) IsSamePos(xyl2 XYLen) bool

func (XYLen) String

func (xyl XYLen) String() string

func (XYLen) Sub

func (xyl XYLen) Sub(arg XYLen) XYLen

type XYLenList

type XYLenList []XYLen

func NewXYLenList

func NewXYLenList(xmax, ymax int) XYLenList

func (XYLenList) Find

func (pll XYLenList) Find(x, y int, start, end int, fn DoFn) bool

func (XYLenList) FindAll

func (pll XYLenList) FindAll(x, y int, fn DoFn) bool

func (XYLenList) Len

func (s XYLenList) Len() int

func (XYLenList) Less

func (s XYLenList) Less(i, j int) bool

func (XYLenList) MakePos2Index

func (pll XYLenList) MakePos2Index() map[[2]int]int

func (XYLenList) SumLen

func (pll XYLenList) SumLen() float64

func (XYLenList) Swap

func (s XYLenList) Swap(i, j int)

Jump to

Keyboard shortcuts

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