duderino > learn > knowledge > snippets > math

nsin

float nsin(float a) // normalized sin 0-1
    {return sin(a)*0.5+0.5;}