math

various math functions

virtuosity.math

Objects

Methods


Objects

color

color conversions

virtuosity.math.color


Methods

clamp

clamps a number (returns the number clamped)

virtuosity.math.clamp(val, min, max);


Parameter Type Description
val Number number to clamp
min Number minimum value
max Number maximum value