static float
{
t = SYSsqrt(t);
return SYScos(t*
M_PI)*.5 + .5;
}
static float
{
t = SYSsqrt(t);
return .5*SYSsin(t*
M_PI);
}
static float
{
if (t <= 0) return 1;
if (t >= 1) return 0;
return evalPosition(t);
}
{
}
static float
cosDFunc(float t)
{
if (t <= 0) return 0;
if (t >= 1) return 0;
return evalGradient(t);
}
{
float min = cosDFunc(t.
min);
float max = cosDFunc(t.
max);
}
"cosine",
"Half Cosine",
cosFunc,
cosFuncRange,
cosDFunc,
cosDFuncRange
};
void
{
}