Documentation ¶
Index ¶
- Constants
- func ABS(a float32) float32
- func Angle(v f32.Vec2) float32
- func AngleTo(v1, v2 f32.Vec2) (dot float32)
- func Atan2(y, x float32) float32
- func Ceil(v float32) float32
- func Clamp(v, left, right float32) float32
- func Cos(r float32) float32
- func Degree(r float32) float32
- func Direction(v1, v2 f32.Vec2) float32
- func Floor(v float32) float32
- func InvLength(x, y, fail float32) float32
- func InvSqrt(x float32) float32
- func IsPow2(x uint32) bool
- func Max(a, b float32) float32
- func Min(a, b float32) float32
- func Pow2(x uint32) uint32
- func Radian(d float32) float32
- func Random(low, high float32) float32
- func Sin(r float32) float32
- func U16Clamp(v, low, high uint16) uint16
- func U16Max(a, b uint16) uint16
- func U16Min(a, b uint16) uint16
- func U32Clamp(v, low, high uint32) uint32
- func U32Max(a, b uint32) uint32
- func U32Min(a, b uint32) uint32
- func Vector(a float32) f32.Vec2
- type Point
- type Rect
- type Size
Constants ¶
View Source
const MaxFloat32 float32 = 3.40282346638528859811704183484516925440e+38
View Source
const Pi = math.Pi
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.