package
Version:
v0.0.19
Opens a new window with list of versions in this module.
Published: Aug 9, 2023
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 Clamp[T Number](v, lo, hi T) T
Clamp returns a value restricted between lo and hi.
func Max[T Number](a T, rest ...T) T
Max finds the largest value of all given values
func Min[T Number](a T, rest ...T) T
Min finds the smallest value of all given values
Number is the type that supports any form of integer or float
Source Files
¶
Click to show internal directories.
Click to hide internal directories.