utils

package
v0.0.0-...-4486ec2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(a int) int

func Lerp

func Lerp(a, b int, i float32) int

func LinearMap

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

func MakeMatrix[T any](sizeX, sizeY int) [][]T

func MinMax

func MinMax(a, b int) (min, max int)

func ModPos

func ModPos(a, b int) int

func QuickType

func QuickType[T any]() reflect.Type

Types

This section is empty.

Jump to

Keyboard shortcuts

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