module

Tres::ExtraMath

Constants

DEGREE_TO_RADIANS_FACTOR = ::Math::PI / 180
RADIANS_TO_DEGREES_FACTOR = 180 / ::Math::PI

Class methods

clamp(x, a, b)
Source
clamp_bottom(x, a)
Source
deg_to_rad(degrees)
Source
map_linear(x, a1, a2, b1, b2)
Source
next_power_of_two(value)
Source
power_of_two?(value)
Source
rad_to_deg(radians)
Source
rand_float(low, high)
Source
rand_float_spread(range)
Source
rand_int(low, high)
Source
random16
Source
sign(x : Number)
Source
smooth_step(x, min, max)
Source
smoother_step(x, min, max)
Source