Add 'saw' motion function

This commit is contained in:
Simon Detheridge
2015-06-22 14:50:43 +01:00
parent 957779639f
commit 1a37504b09
4 changed files with 10 additions and 2 deletions

View File

@ -883,10 +883,14 @@ public:
return fr;
}
else//MOTION_HILL
else if (funcNum == MOTION_HILL)
{
return ((1 - cos(T(2.0) * T(M_PI) * timeVal)) * T(0.5));
}
else //MOTION_SAW
{
return (T(2.0) * fmod(timeVal - T(0.5), T(1.0)) - T(1.0));
}
}
/*