util

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between added in v1.12.0

func Between[T1, T2, T3 constraints.Float | constraints.Integer](v T1, min T2, max T3) bool

Between returns if a value is between the specified range [min, max]

func Clamp added in v1.3.0

func Clamp[T1, T2, T3 constraints.Float | constraints.Integer](v T1, min T2, max T3) T1

Clamp returns a value that does not exceed the specified range [min, max]

Types

This section is empty.

Jump to

Keyboard shortcuts

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