astar

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pather

type Pather interface {
	// Neighbors --
	// RETURNS DIRECT NEIGHBORS FOR PATH
	Neighbors() []Pather
	// NeighborCost --
	// RETURNS MOVE COST
	NeighborCost(destination Pather) float64
	// EstimatedCost --
	// ESTIMATE MOVE COSTS BTWN NON-ADJACENT NODES
	EstimatedCost(destination Pather) float64
}

Pather -- A* PATHER INTERFACE

func Path

func Path(init, destination Pather) (path []Pather, distance float64, found bool)

Path -- RETURNS SHORT PATH, DIST, TRUE BTWN PATHER NODES RESULTING IN FIXED: XI -> XF INSTEAD OF XF -> XI

Jump to

Keyboard shortcuts

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