package
Version:
v0.0.0-...-23eb0d9
Opens a new window with list of versions in this module.
Published: Aug 10, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Abs32(a float32) float32
-
func Absi(a int) int
-
func Asin32(a float32) float32
-
func Atan232(a, b float32) float32
-
func Clamp(val, min, max float32) float32
-
func Cos32(a float32) float32
-
func Floor32(a float32) float32
-
func Lerp(a, b, t float32) float32
-
func Map(val, smin, smax, dmin, dmax float32) float32
-
func Max32(a, b float32) float32
-
func Maxi(a, b int) int
-
func Min32(a, b float32) float32
-
func Mini(a, b int) int
-
func Mod32(a, b float32) float32
-
func Sin32(a float32) float32
-
func Sqrt32(a float32) float32
-
func Sqrti(a int) int
Abs32 is a float32 variant of math.Abs which is float64
Absi is a int variant of math.Abs which is float64
Asin32 is a float32 variant of math.Asin which is float64
Atan232 is a float32 variant of math.Atan2 which is float64
Clamp restricts a value val to the range (min, max).
If val is small than min it's set to min if it's bigger than max it's
set to max respectively.
Cos32 is a float32 variant of math.Cos which is float64
Floor32 is a float32 variant of math.Floor which is float64
Lerp performs a linear interpolation between a and b based on t.
t should be between 0 and 1.
Map maps a value val in the range (smin,smax) to the range (dmin,dmax)
Max32 is a float32 variant of math.Max which is float64
Maxi is a int variant of math.Max which is float64
Min32 is a float32 variant of math.Min which is float64
Mini is a int variant of math.Min which is float64
Mod32 is a float32 variant of math.Mod which is float64
Sin32 is a float32 variant of math.Sin which is float64
Sqrt32 is a float32 variant of math.Sqrt which is float64
Sqrti is a int variant of math.Sqrt which is float64
Source Files
¶
Click to show internal directories.
Click to hide internal directories.