package
Version:
v0.0.0-...-4486ec2
Opens a new window with list of versions in this module.
Published: Mar 17, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
-
func Abs(a int) int
-
func Lerp(a, b int, i float32) int
-
func LinearMap(a1, a2, ai, b1, b2 int) int
-
func MakeMatrix[T any](sizeX, sizeY int) [][]T
-
func MinMax(a, b int) (min, max int)
-
func ModPos(a, b int) int
-
func QuickType[T any]() reflect.Type
func LinearMap(a1, a2, ai, b1, b2 int) int
Map the value ai from [a1;a2] to a value in [b1;b2]
Requires that a1 != a2
func MakeMatrix[T any](sizeX, sizeY int) [][]T
func MinMax(a, b int) (min, max int)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.