mathutil

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package mathutil provides small, dependency-free numeric helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp(value, min, max int) int

Clamp returns value constrained to the inclusive range [min, max]. If min is greater than max the bounds are swapped so the result is always well defined.

Types

This section is empty.

Jump to

Keyboard shortcuts

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