Documentation ¶
Index ¶
- type Dimension
- type Vector
- func (v *Vector) Add(other *Vector)
- func (v *Vector) AddAll(others ...*Vector)
- func (v *Vector) AngleTo(other *Vector) float64
- func (v *Vector) DistanceFrom(other *Vector) float64
- func (v *Vector) Divide(divisor float64)
- func (v *Vector) Limit(max float64)
- func (v *Vector) Magnitude() float64
- func (v *Vector) Mod(bounds *Dimension) *Vector
- func (v *Vector) Normalize()
- func (v *Vector) Scale(factor float64)
- func (v *Vector) SquareDistanceFrom(other *Vector) float64
- func (v Vector) String() string
- func (v *Vector) Subtract(other *Vector)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.