Versions in this module Expand all Collapse all v1 v1.3.0 Jun 1, 2021 v1.2.0 Jun 1, 2021 Changes in this version + type Vector struct + X float64 + Y float64 + Z float64 + func Add(v1, v2 Vector) Vector + func DivScalar(v Vector, scalar float64) Vector + func MultScalar(v Vector, scalar float64) Vector + func New2DVector(x, y float64) Vector + func Sub(v1, v2 Vector) Vector + func (v *Vector) Add(other Vector) + func (v *Vector) DivScalar(scalar float64) + func (v *Vector) MultScalar(scalar float64) + func (v *Vector) Sub(other Vector) + func (v Vector) DistanceTo(other Vector) float64 + func (v Vector) Dot(other Vector) float64 + func (v Vector) Magnitude() float64 + func (v Vector) Normal2D() Vector + func (v Vector) Unit() Vector