Some math functions (again and again =)
Posted: Sun Feb 18, 2007 11:45 am
Here is my math wishlist
http://www.purebasic.fr/french/viewtopic.php?p=61363
Dri
- modulus operator for floats
I've written a Mod function for floats and if it was managed by the compiler (like cos sin...) it would be even faster... I know people will say "modulus operator is for integers" but the FPU instruction exists. - WrapValue(Angle)
This function exists in DarkBasic (except that it uses degrees) and returns an angle from 0 to 2Pi - ATan2(y, x)
It has been discussed a lot but if it were native it would be managed by the compiler (like cos sin...) - ATanFull(y, x)
Another function taken from DarkBasic, it is the equivalent of WrapValue(ATan2(y, x)) - Exp(Value)
It has been requested a very lot too, but the PB Math lib looks a bit naked without it
http://www.purebasic.fr/french/viewtopic.php?p=61363
Dri
