ord

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 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.

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.

Jump to

Keyboard shortcuts

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