package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Mar 8, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Abs returns the absolute value of x.
It ignores the case Abs(math.Minimum)
func Constrain(x, min, max int) int
Constrain contrains the input x within its boundaries min and max
Max returns the integer maximum from a and b
Min returns the integer minimum from a and b
func Rescale(x, inMin, inMax, outMin, outMax int) int
Rescale maps a value x on a in scale to out scale
Source Files
¶
Click to show internal directories.
Click to hide internal directories.