BlackHornet
Member
|
fmod missing in Math.h
Urbanity Online: http://www.facebook.com/pages/Urbanity-Online/162454237136358
Join the Esenthel IRC Channel @ Freenode: http://webchat.freenode.net/?channels=##Esenthel
(This post was last modified: 09-14-2011 03:35 PM by BlackHornet.)
|
|
09-14-2011 03:33 PM |
|
Esenthel
Administrator
|
RE: fmod missing in Math.h
You can use Frac Round Trunc Floor Ceil functions
|
|
09-15-2011 05:31 PM |
|
BlackHornet
Member
|
RE: fmod missing in Math.h
ok...
So I write my own
Code:
Flt FMod(Flt y, Flt x)
{
return = y - Trunc(y/x)*x;
}
Urbanity Online: http://www.facebook.com/pages/Urbanity-Online/162454237136358
Join the Esenthel IRC Channel @ Freenode: http://webchat.freenode.net/?channels=##Esenthel
|
|
09-15-2011 08:13 PM |
|
Esenthel
Administrator
|
RE: fmod missing in Math.h
actually it's already present in the engine Flt Frac(Flt x, Flt range)
it works the same for positive values like fmod, I haven't tested it for negative values
|
|
10-01-2011 12:40 PM |
|