Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Point ¶
type Point struct {
X, Y uint
}
func Search ¶
implemented from https://en.wikipedia.org/wiki/A*_search_algorithm
type PointEntry ¶
type PointEntry struct {
// contains filtered or unexported fields
}
type SearchState ¶
type SearchState struct {
// contains filtered or unexported fields
}
based on example from https://golang.org/pkg/container/heap/
func NewSearchState ¶
func NewSearchState() *SearchState
func (*SearchState) GetEntry ¶
func (ss *SearchState) GetEntry(p Point) *PointEntry
func (*SearchState) Len ¶
func (ss *SearchState) Len() int
func (*SearchState) Less ¶
func (ss *SearchState) Less(i, j int) bool
func (*SearchState) Pop ¶
func (ss *SearchState) Pop() interface{}
func (*SearchState) Push ¶
func (ss *SearchState) Push(x interface{})
func (*SearchState) Swap ¶
func (ss *SearchState) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.