Documentation
¶
Index ¶
- func Distance(a *Vector2, b *Vector2) float64
- func Dot(ihs *Vector2, rhs *Vector2) float64
- type Vector2
- func (v *Vector2) Add(other *Vector2) *Vector2
- func (v *Vector2) AddScalar(scalar float64) *Vector2
- func (v *Vector2) AddScalars(x float64, y float64) *Vector2
- func (v *Vector2) Copy() *Vector2
- func (v *Vector2) Distance(other *Vector2) float64
- func (v *Vector2) Div(other *Vector2) *Vector2
- func (v *Vector2) DivScalar(scalar float64) *Vector2
- func (v *Vector2) DivScalars(x float64, y float64) *Vector2
- func (v *Vector2) Dot(other *Vector2) float64
- func (v *Vector2) Equals(other *Vector2) bool
- func (v *Vector2) Lerp(other *Vector2, t float64) *Vector2
- func (v *Vector2) Magnitude() float64
- func (v *Vector2) Mul(other *Vector2) *Vector2
- func (v *Vector2) MulScalar(scalar float64) *Vector2
- func (v *Vector2) MulScalars(x float64, y float64) *Vector2
- func (v *Vector2) Normalize() *Vector2
- func (v *Vector2) Reflect(other *Vector2) *Vector2
- func (v *Vector2) Set(x float64, y float64) *Vector2
- func (v *Vector2) String() string
- func (v *Vector2) Sub(other *Vector2) *Vector2
- func (v *Vector2) SubScalar(scalar float64) *Vector2
- func (v *Vector2) SubScalars(x float64, y float64) *Vector2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.