Documentation
¶
Index ¶
- Variables
- func AngleBetween32(centre, p1, p2 Vector2f) float32
- func AngleBetween64(centre, p1, p2 Vector2d) float64
- func IsStraightLine32(a, b, c Vector2f) bool
- func IsStraightLine64(a, b, c Vector2d) bool
- type Vector2d
- func (v Vector2d) Abs() Vector2d
- func (v Vector2d) Add(v1 Vector2d) Vector2d
- func (v Vector2d) AddS(x, y float64) Vector2d
- func (v Vector2d) Angle() float64
- func (v Vector2d) AngleR() float64
- func (v Vector2d) AngleRV(v1 Vector2d) float64
- func (v Vector2d) AsVec3() mgl32.Vec3
- func (v Vector2d) AsVec4() mgl32.Vec4
- func (v Vector2d) Copy() Vector2d
- func (v Vector2d) Copy32() Vector2f
- func (v Vector2d) Dot(v1 Vector2d) float64
- func (v Vector2d) Dst(v1 Vector2d) float64
- func (v Vector2d) DstSq(v1 Vector2d) float64
- func (v Vector2d) Len() float64
- func (v Vector2d) LenSq() float64
- func (v Vector2d) Lerp(v1 Vector2d, t float64) Vector2d
- func (v Vector2d) Mid(v1 Vector2d) Vector2d
- func (v Vector2d) Mult(v1 Vector2d) Vector2d
- func (v Vector2d) Nor() Vector2d
- func (v Vector2d) Rotate(rad float64) Vector2d
- func (v Vector2d) Scl(mag float64) Vector2d
- func (v Vector2d) String() string
- func (v Vector2d) Sub(v1 Vector2d) Vector2d
- func (v Vector2d) SubS(x, y float64) Vector2d
- func (v Vector2d) X32() float32
- func (v Vector2d) Y32() float32
- type Vector2f
- func (v Vector2f) Abs() Vector2f
- func (v Vector2f) Add(v1 Vector2f) Vector2f
- func (v Vector2f) AddS(x, y float32) Vector2f
- func (v Vector2f) Angle() float32
- func (v Vector2f) AngleR() float32
- func (v Vector2f) AngleRV(v1 Vector2f) float32
- func (v Vector2f) AsVec3() mgl32.Vec3
- func (v Vector2f) AsVec4() mgl32.Vec4
- func (v Vector2f) Copy() Vector2f
- func (v Vector2f) Copy64() Vector2d
- func (v Vector2f) Dot(v1 Vector2f) float32
- func (v Vector2f) Dst(v1 Vector2f) float32
- func (v Vector2f) DstSq(v1 Vector2f) float32
- func (v Vector2f) Len() float32
- func (v Vector2f) LenSq() float32
- func (v Vector2f) Lerp(v1 Vector2f, t float32) Vector2f
- func (v Vector2f) Mid(v1 Vector2f) Vector2f
- func (v Vector2f) Mult(v1 Vector2f) Vector2f
- func (v Vector2f) Nor() Vector2f
- func (v Vector2f) Rotate(rad float32) Vector2f
- func (v Vector2f) Scl(mag float32) Vector2f
- func (v Vector2f) String() string
- func (v Vector2f) Sub(v1 Vector2f) Vector2f
- func (v Vector2f) SubS(x, y float32) Vector2f
- func (v Vector2f) X64() float64
- func (v Vector2f) Y64() float64
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TopLeft = Vector2d{-1, -1} Centre = Vector2d{0, 0} //nolint:misspell CentreLeft = Vector2d{-1, 0} TopRight = Vector2d{1, -1} BottomCentre = Vector2d{0, 1} TopCentre = Vector2d{0, -1} CentreRight = Vector2d{1, 0} BottomLeft = Vector2d{-1, 1} BottomRight = Vector2d{1, 1} )
DON'T TOUCH THIS
Functions ¶
func AngleBetween32 ¶
func AngleBetween64 ¶
func IsStraightLine32 ¶
func IsStraightLine64 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.