Mercurial > hg > Members > koba > t_dandy
view sankaku.h @ 40:cbe5bb9068c3
add trace mode to tree_dandy2(SceneGraph)
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 12 Jan 2011 00:01:02 +0900 |
parents | 435ac1cdb64e |
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; }