return x % y + (x < 0 ? y : 0);
}
-float radsToA(float rads)
-{
- return ftofix(rads * 128/PI);
-}
-
-float atanA(float c)
-{
- return radsToA(atan(c)) + itofix(64);
-}
-
-float atan2A(float y, float x)
-{
- return radsToA(atan2(y,x)) + itofix(64);
-}
-
/// Vector2 Math
Vector2 perp(const Vector2& vec)