cgm

package
v0.0.0-...-23eb0d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs32

func Abs32(a float32) float32

Abs32 is a float32 variant of math.Abs which is float64

func Absi

func Absi(a int) int

Absi is a int variant of math.Abs which is float64

func Asin32

func Asin32(a float32) float32

Asin32 is a float32 variant of math.Asin which is float64

func Atan232

func Atan232(a, b float32) float32

Atan232 is a float32 variant of math.Atan2 which is float64

func Clamp

func Clamp(val, min, max float32) float32

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.

func Cos32

func Cos32(a float32) float32

Cos32 is a float32 variant of math.Cos which is float64

func Floor32

func Floor32(a float32) float32

Floor32 is a float32 variant of math.Floor which is float64

func Lerp

func Lerp(a, b, t float32) float32

Lerp performs a linear interpolation between a and b based on t. t should be between 0 and 1.

func Map

func Map(val, smin, smax, dmin, dmax float32) float32

Map maps a value val in the range (smin,smax) to the range (dmin,dmax)

func Max32

func Max32(a, b float32) float32

Max32 is a float32 variant of math.Max which is float64

func Maxi

func Maxi(a, b int) int

Maxi is a int variant of math.Max which is float64

func Min32

func Min32(a, b float32) float32

Min32 is a float32 variant of math.Min which is float64

func Mini

func Mini(a, b int) int

Mini is a int variant of math.Min which is float64

func Mod32

func Mod32(a, b float32) float32

Mod32 is a float32 variant of math.Mod which is float64

func Sin32

func Sin32(a float32) float32

Sin32 is a float32 variant of math.Sin which is float64

func Sqrt32

func Sqrt32(a float32) float32

Sqrt32 is a float32 variant of math.Sqrt which is float64

func Sqrti

func Sqrti(a int) int

Sqrti is a int variant of math.Sqrt which is float64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL