Mercurial > hg > Members > tkaito > t_dandy_old
view sankaku.h @ 0:4be1ca60a49b default tip
first commit.
author | tkaito |
---|---|
date | Sat, 05 Feb 2011 02:13:58 +0900 |
parents | |
children |
line wrap: on
line source
#include <math.h> #define SANKAKU (100000.0) static const double pi2 = M_PI * 2.0; static inline float Mycos(float c) { return cosf( c / 360.0 * pi2 ) * SANKAKU; } static inline float Mysin(float c) { return sinf( c / 360.0 * pi2 ) * SANKAKU; }