ReC98/th03/math/polar.hpp

9 lines
306 B
C++
Raw Normal View History

// Calculates either the X or Y coordinate of a point with the given [radius]
// away from [center]. [ratio] is either the cosine or the sine of the intended
// angle.
#if (GAME >= 4)
int pascal polar(int center, int radius, int ratio);
#else
int __cdecl polar(int center, int radius, int ratio);
#endif