Documentation ¶
Index ¶
- Constants
- func Abs(x float32) float32
- func AngleDiff(from, to float32) float32
- func Atan2(y, x float32) float32
- func Clamp(x, min, max float32) float32
- func Cos(x float32) float32
- func DegreesFromRadians(radians float32) float32
- func Floor(x float32) float32
- func Lerp(a, b, f float32) float32
- func MagnitudeAndSign(x float32) (float32, float32)
- func Max(x, y float32) float32
- func Min(x, y float32) float32
- func Mod(x, y float32) float32
- func Modf(x float32) (float32, float32)
- func NaN() float32
- func NormalizeAngle(a float32) float32
- func Pow(x, y float32) float32
- func RadiansFromDegrees(degrees float32) float32
- func Sin(x float32) float32
- func SinCos(x float32) (float32, float32)
- func Sqrt(x float32) float32
- type NormallyDistributedValue
- type UniformRangedValue
Constants ¶
View Source
const ( Pi = float32(math.Pi) TwoPi = float32(2. * Pi) Epsilon = math.SmallestNonzeroFloat32 )
Variables ¶
This section is empty.
Functions ¶
func DegreesFromRadians ¶
func MagnitudeAndSign ¶
func NormalizeAngle ¶
NormalizeAngle normalizes an angle and ensures it lies in the range [-Pi,+Pi]
func RadiansFromDegrees ¶
Types ¶
type NormallyDistributedValue ¶
type NormallyDistributedValue struct {
Mean, StdDev float32
}
type UniformRangedValue ¶
type UniformRangedValue struct {
Min, Max float32
}
Click to show internal directories.
Click to hide internal directories.