Mercurial > hg > Members > koba > t_dandy
view ppe/Sankaku.h @ 55:2c33aa6a4a37
debug global_alloc.but new bugs appear
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 28 Jan 2011 19:05:00 +0900 |
parents | 7aaaaf5dde40 |
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; }