sily.math

Custom templated math

Members

Aliases

deg2rad
alias deg2rad = degtorad
Undocumented in source.
rad2deg
alias rad2deg = radtodeg
Undocumented in source.

Functions

lerp
T lerp(T from, T to, T weight)

Linearly interpolates value

snap
T snap(T p_val, T p_step)

Snaps value to step

snap
T snap(T p_val, T p_step)

Snaps value to step, if T is not float, then explicit casts are used and it may cause data loss

Variables

degtorad
double degtorad;
Undocumented in source.
radtodeg
double radtodeg;
Undocumented in source.

Meta