Documentation ¶
Index ¶
- type BulgeVector
- type Direction
- type Path
- func (p *Path) AddPoint(point vector2.Vector2)
- func (p *Path) GetDistance(fromIndex, toIndex int, direction Direction) float64
- func (p *Path) GetNearestPoint(fromPosition vector2.Vector2) (vector2.Vector2, int, int)
- func (p *Path) GetNearestSegment(fromPosition vector2.Vector2) (int, int)
- func (p *Path) GetPoint(index int) vector2.Vector2
- func (p *Path) GetSegment(aIndex, bIndex int) [2]vector2.Vector2
- func (p *Path) InsertPoint(point vector2.Vector2, index int)
- func (p *Path) Next(index int, direction Direction) int
- func (p *Path) Offset(delta float64, allowInversion bool) error
- func (p *Path) Previous(index int, direction Direction) int
- func (p *Path) Walk(fromPosition vector2.Vector2, distance float64, direction Direction) ([]int, vector2.Vector2)
- func (p *Path) WalkToEnd(start vector2.Vector2, direction Direction) ([]int, vector2.Vector2)
- func (p *Path) WalkToIndex(fromIndex, toIndex int, direction Direction) ([]int, float64)
- type VectorB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulgeVector ¶
type Path ¶
func (*Path) GetDistance ¶
func (*Path) GetNearestPoint ¶
func (*Path) GetNearestSegment ¶
Click to show internal directories.
Click to hide internal directories.