Module elmesque::utils [] [src]

Functions

clamp

Clamp a value to a range.

clampf32

Clamp a f32 between 0f32 and 1f32.

degrees

Convert degrees to radians.

fmod

Modulo float.

map_range

Map a value from a given range to a new given range.

max

Return the max between to floats.

min

Return the min between to floats.

modulo

The modulo function.

turns

Convert turns to radians.