Documentation ¶
Index ¶
- type Vector
- func (v *Vector) Add(other Vector)
- func (v Vector) DistanceTo(other Vector) float64
- func (v *Vector) DivScalar(scalar float64)
- func (v Vector) Dot(other Vector) float64
- func (v Vector) Magnitude() float64
- func (v *Vector) MultScalar(scalar float64)
- func (v Vector) Normal2D() Vector
- func (v *Vector) Sub(other Vector)
- func (v Vector) Unit() Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vector ¶
func MultScalar ¶
func New2DVector ¶
func (Vector) DistanceTo ¶
func (*Vector) MultScalar ¶
Click to show internal directories.
Click to hide internal directories.