package
Version:
v0.0.0-...-45548fe
Opens a new window with list of versions in this module.
Published: Apr 25, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func ConstrainFloat64(n, low, high float64) float64
-
func ConstrainUInt8(n, low, high uint8) uint8
-
func PosInBounds(pos pixel.Vec, rect pixel.Rect) bool
-
func RandFloatInRange(min, max float64) float64
-
func RandIntInRange(min, max int) int
-
func ReRange(value, aMin, aMax, bMin, bMax float64) float64
RandFloatInRange returns a random float64 between min and max
func RandIntInRange(min, max int) int
RandIntInRange returns a random int between min and max
ReRange maps a value from one range to another
Source Files
¶
Click to show internal directories.
Click to hide internal directories.