Documentation ¶
Overview ¶
Package mathutil provides some additional math methods
Index ¶
- func Abs(val int) int
- func Abs16(val int16) int16
- func Abs32(val int32) int32
- func Abs64(val int64) int64
- func Abs8(val int8) int8
- func AbsF(val float64) float64
- func AbsF32(val float32) float32
- func AbsF64(val float64) float64
- func Between(val, min, max int) int
- func Between16(val, min, max int16) int16
- func Between32(val, min, max int32) int32
- func Between64(val, min, max int64) int64
- func Between8(val, min, max int8) int8
- func BetweenF(val, min, max float64) float64
- func BetweenF32(val, min, max float32) float32
- func BetweenF64(val, min, max float64) float64
- func BetweenU(val, min, max uint) uint
- func BetweenU16(val, min, max uint16) uint16
- func BetweenU32(val, min, max uint32) uint32
- func BetweenU64(val, min, max uint64) uint64
- func BetweenU8(val, min, max uint8) uint8
- func Max(val1, val2 int) int
- func Max16(val1, val2 int16) int16
- func Max32(val1, val2 int32) int32
- func Max64(val1, val2 int64) int64
- func Max8(val1, val2 int8) int8
- func MaxU(val1, val2 uint) uint
- func MaxU16(val1, val2 uint16) uint16
- func MaxU32(val1, val2 uint32) uint32
- func MaxU64(val1, val2 uint64) uint64
- func MaxU8(val1, val2 uint8) uint8
- func Min(val1, val2 int) int
- func Min16(val1, val2 int16) int16
- func Min32(val1, val2 int32) int32
- func Min64(val1, val2 int64) int64
- func Min8(val1, val2 int8) int8
- func MinU(val1, val2 uint) uint
- func MinU16(val1, val2 uint16) uint16
- func MinU32(val1, val2 uint32) uint32
- func MinU64(val1, val2 uint64) uint64
- func MinU8(val1, val2 uint8) uint8
- func Round(v float64, p int) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BetweenF32 ¶
BetweenF32 returns value between min and max values
func BetweenF64 ¶
BetweenF64 returns value between min and max values
func BetweenU16 ¶
BetweenU16 returns value between min and max values
func BetweenU32 ¶
BetweenU32 returns value between min and max values
func BetweenU64 ¶
BetweenU64 returns value between min and max values
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.