xmath

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp[N constraints.Ordered](value, min, max N) N

Clamp returns a value clamped between min and max.

func Max

func Max[N constraints.Ordered](a N, b ...N) N

Max returns the maximum of a and all bs.

func Min

func Min[N constraints.Ordered](a N, b ...N) N

Min returns the minimum of a and all bs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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