mathx

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package mathx provides helper math utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecreaseWithMin

func DecreaseWithMin(in, minVal int) int

DecreaseWithMin decreases in by 1 but only to minVal value.

func IncreaseWithMax

func IncreaseWithMax(in, maxVal int) int

IncreaseWithMax increases in by 1 but only up to maxVal value.

func Min

func Min(a, b int) int

Min returns the smallest of a or b.

Types

This section is empty.

Jump to

Keyboard shortcuts

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