Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dijkstra ¶
type Dijkstra struct {
Matrix map[int32][]WeightedTriangle // all edge for nodes
}
Dijkstra
func (*Dijkstra) CreateMatrixFromMesh ¶
create neighbour matrix
type NavMesh ¶
type NavMesh struct { // contains filtered or unexported fields }
func (*NavMesh) FindingPath ¶
在 X,Y 平面上寻路
func (*NavMesh) InitWithVertices ¶
type TriangleHeap ¶
type TriangleHeap struct {
// contains filtered or unexported fields
}
func NewTriangleHeap ¶
func NewTriangleHeap() *TriangleHeap
func (*TriangleHeap) DecreaseKey ¶
func (th *TriangleHeap) DecreaseKey(id int32, weight uint32)
func (*TriangleHeap) Len ¶
func (th *TriangleHeap) Len() int
func (*TriangleHeap) Less ¶
func (th *TriangleHeap) Less(i, j int) bool
func (*TriangleHeap) Pop ¶
func (th *TriangleHeap) Pop() interface{}
func (*TriangleHeap) Push ¶
func (th *TriangleHeap) Push(x interface{})
func (*TriangleHeap) Swap ¶
func (th *TriangleHeap) Swap(i, j int)
type WeightedTriangle ¶
Triangle Heap
Click to show internal directories.
Click to hide internal directories.