maths

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxFloat64s

func MaxFloat64s(values ...float64) float64

MaxFloat64s returns the largest of elements, panics when values are empty.

func MaxInt16s

func MaxInt16s(values ...int16) int16

MaxInt16s returns the largest of elements, panics when values are empty.

func MaxInt32s

func MaxInt32s(values ...int32) int32

MaxInt32s returns the largest of elements, panics when values are empty.

func MaxInt64s

func MaxInt64s(values ...int64) int64

MaxInt64s returns the largest of elements, panics when values are empty.

func MaxInt8s

func MaxInt8s(values ...int8) int8

MaxInt8s returns the largest of elements, panics when values are empty.

func MaxInts

func MaxInts(values ...int) int

MaxInts returns the largest of elements,panics when values are empty.

func MinFloat64s

func MinFloat64s(values ...float64) float64

MinFloat64s returns the smallest of elements, panics when values are empty.

func MinInt16s

func MinInt16s(values ...int16) int16

MinInt16s returns the smallest of elements, panics when values are empty.

func MinInt32s

func MinInt32s(values ...int32) int32

MinInt32s returns the smallest of elements, panics when values are empty.

func MinInt64s

func MinInt64s(values ...int64) int64

MinInt64s returns the smallest of elements, panics when values are empty.

func MinInt8s

func MinInt8s(values ...int8) int8

MinInt8s returns the smallest of elements, panics when values are empty.

func MinInts

func MinInts(values ...int) int

MinInts returns the smallest of elements, panics when values are empty.

func RangeRandomLCRC

func RangeRandomLCRC(left, right int) int

RangeRandomLCRC returns value in [left, right], LCRC means left close right close.

func RangeRandomLCRO

func RangeRandomLCRO(left, right int) int

RangeRandomLCRO returns value in [left, right), LCRO means left close right open.

func RangeRandomLORO

func RangeRandomLORO(left, right int) int

RangeRandomLORO returns value in (left, right), LORO means left open right open. Notice: because of manual +1, so the value of left+1 will be slightly more.

Types

This section is empty.

Jump to

Keyboard shortcuts

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