mathutil

package
v0.0.0-...-86de5ac Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp(value, min, max int) int

func GCD

func GCD(a, b int) int

Greatest Common Divider is the largest number that divides both a and b without leaving a remainder

func LCM

func LCM(a, b int) int

Lowest Common Multiple is the smallest number that is a multiple of both a and b

func RangeOverlap

func RangeOverlap(start1, end1, start2, end2 int) bool

RangeOverlap returns true if the ranges overlap

Types

This section is empty.

Jump to

Keyboard shortcuts

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