Versions in this module Expand all Collapse all v1 v1.0.1 Oct 14, 2022 v1.0.0 Jun 2, 2022 Changes in this version + func Abs(x int) int + func AbsInt16(x int16) int16 + func AntiClockwise(v1 Vector2, v2 Vector2) bool + func Between(x int, start int, end int) bool + func BetweenInt16(x int16, start int16, end int16) bool + func DegAngle(v1 Vector2, v2 Vector2) float64 + func GetDistance(a Vector3, b Vector3) float64 + type Axis int + const XAxis + const YAxis + const ZAxis + type Vector2 struct + X float64 + Y float64 + func Deg2Vector(deg float64) Vector2 + func Rad2Vector(rad float64) Vector2 + func (v Vector2) Norm() float64 + func (v Vector2) VectorDegAngle() float64 + type Vector3 struct + X float64 + Y float64 + Z float64 + func Normalize3(a Vector3) Vector3 + func (v *Vector3) Clone() Vector3 + func (v Vector3) Abs() Vector3 + func (v Vector3) Add(ov Vector3) Vector3 + func (v Vector3) Angle(ov Vector3) s1.Angle + func (v Vector3) ApproxEqual(ov Vector3) bool + func (v Vector3) Cmp(ov Vector3) int + func (v Vector3) Cross(ov Vector3) Vector3 + func (v Vector3) Distance(ov Vector3) float64 + func (v Vector3) Dot(ov Vector3) float64 + func (v Vector3) IsUnit() bool + func (v Vector3) LargestComponent() Axis + func (v Vector3) Mul(m float64) Vector3 + func (v Vector3) Norm() float64 + func (v Vector3) Norm2() float64 + func (v Vector3) Normalize() Vector3 + func (v Vector3) Ortho() Vector3 + func (v Vector3) SmallestComponent() Axis + func (v Vector3) String() string + func (v Vector3) Sub(ov Vector3) Vector3