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 NMax ¶ added in v0.10.0
func NMax[N constraints.Ordered](a N, b ...N) N
NMax returns the maximum of a and all bs.
func NMin ¶ added in v0.10.0
func NMin[N constraints.Ordered](a N, b ...N) N
NMin returns the minimum of a and all bs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.