Documentation
¶
Index ¶
- Variables
- func ApplyDeadZone(v float64, deadZone float64) float64
- func IsDeadZone(axes Vector2) bool
- type Analog
- type DPad
- type Gamepad
- type Input
- type Vector2
- func (a Vector2) Add(b Vector2) Vector2
- func (a Vector2) AddScale(b Vector2, s float64) Vector2
- func (a Vector2) Angle() float64
- func (a Vector2) Cross(b Vector2) float64
- func (a Vector2) Distance(b Vector2) float64
- func (a Vector2) Distance2(b Vector2) float64
- func (a Vector2) Dot(b Vector2) float64
- func (a Vector2) Length() float64
- func (a Vector2) Length2() float64
- func (a Vector2) NearZero() bool
- func (a Vector2) Negate() Vector2
- func (a Vector2) Normalize() Vector2
- func (a Vector2) Rotate(angle float64) Vector2
- func (a Vector2) Rotate180() Vector2
- func (a Vector2) Rotate90() Vector2
- func (a Vector2) Rotate90c() Vector2
- func (a Vector2) Scale(s float64) Vector2
- func (a Vector2) Sub(b Vector2) Vector2
- func (a Vector2) XY() (x, y float64)
Constants ¶
This section is empty.
Variables ¶
View Source
var Zero2 = Vector2{}
Functions ¶
func ApplyDeadZone ¶
func IsDeadZone ¶
Types ¶
type DPad ¶
type Input ¶
type Vector2 ¶
type Vector2 struct{ X, Y float64 }
Click to show internal directories.
Click to hide internal directories.