rrt

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[T any](stepDistance int, maxTries int, focusOnFinishEveryTry int) *rrt[T]

Types

type Point

type Point[T any] struct {
	X    int
	Y    int
	Data T
}

func NewPoint added in v0.0.8

func NewPoint(x int, y int) *Point[any]

func (*Point[T]) Atan2To

func (p *Point[T]) Atan2To(other *Point[T]) float64

func (*Point[T]) DistanceTo

func (p *Point[T]) DistanceTo(other *Point[T]) float64

func (*Point[T]) GetString

func (p *Point[T]) GetString() string

type RRT

type RRT[T any] interface {
	AddCollisionCondition(condition func(point T) bool)
	AddStopCondition(condition func(testPoint *Point[T], finish *Point[T]) bool)
	FindPath(start *Point[any], finish *Point[any], world [][]T) []*Point[T]
	GetTree() *tree.Tree[*Point[T]]
}

func NewRRTWithPDF added in v0.0.8

func NewRRTWithPDF[T any](stepDistance int, maxTries int, focusOnFinishEveryTry int, drawScale float64, file string) RRT[T]

Jump to

Keyboard shortcuts

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