Documentation ¶
Index ¶
- func GetVecAngle(a, b *Vector) float64
- func IntMax(x, y int) int
- func IntMin(x, y int) int
- type Circle
- type Point
- type Rectangle
- type Vector
- func (a *Vector) Add(b *Vector) Vector
- func (a *Vector) Cross(b *Vector) int64
- func (a *Vector) Dot(b *Vector) int64
- func (a *Vector) Length() float64
- func (a *Vector) Mul(m float64) Vector
- func (a *Vector) Normalize() Vector
- func (a *Vector) Rotate(angle float64) Vector
- func (a *Vector) Sub(b *Vector) Vector
- func (a Vector) ToPoint(start Point) Point
- func (a *Vector) Trunc(ratio float64) Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.