Mercurial > hg > Members > kono > tree_dandy2
view sankaku.h @ 3:c95b185b4c33 open-gl
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 07 Dec 2010 16:16:42 +0900 |
parents | 01387a2e419e |
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; }