Documentation
¶
Index ¶
- type V2
- func (v V2) Add(w V2) V2
- func (v V2) Cross(w V2) float32
- func (v V2) Distance(w V2) float32
- func (v V2) DistanceSq(w V2) float32
- func (v V2) Dot(w V2) float32
- func (v V2) Length() float32
- func (v V2) LengthSq() float32
- func (v V2) Lerp(w V2, f float32) V2
- func (v V2) Max(w V2) V2
- func (v V2) Min(w V2) V2
- func (v V2) Negate() V2
- func (v V2) Normal() (V2, float32)
- func (v V2) Rotate(a float32) V2
- func (v V2) Scale(s float32) V2
- func (v V2) String() string
- func (v V2) Sub(w V2) V2
- func (v V2) ToAngle() float32
- type V3
- type V4
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V2 ¶
type V2 struct {
X, Y float32
}
func NewV2FromAngle ¶ added in v0.0.2
func (V2) DistanceSq ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.