view sankaku.h @ 66:f27a6af6514c

SchedRegister, game_task.h etc...
author tkaito
date Thu, 17 Feb 2011 10:56:56 +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; }