Tres::ExtraMath
Constants
DEGREE_TO_RADIANS_FACTOR = ::Math::PI / 180
RADIANS_TO_DEGREES_FACTOR = 180 / ::Math::PI
Class methods
clamp(x, a, b)
Sourceclamp_bottom(x, a)
Sourcedeg_to_rad(degrees)
Sourcemap_linear(x, a1, a2, b1, b2)
Sourcenext_power_of_two(value)
Sourcepower_of_two?(value)
Sourcerad_to_deg(radians)
Sourcerand_float(low, high)
Sourcerand_float_spread(range)
Sourcerand_int(low, high)
Sourcerandom16
Sourcesign(x : Number)
Sourcesmooth_step(x, min, max)
Sourcesmoother_step(x, min, max)
Source