Mercurial > hg > old > magoroku_racing
view mytype.h @ 122:5219bf3d5e71
title_draw
author | e085768 |
---|---|
date | Mon, 27 Jun 2011 19:44:46 +0900 |
parents | 0b65ca27f113 |
children |
line wrap: on
line source
/* mytype.h */ #include<math.h> #define RADIAN(d) ((d)*M_PI/180.0) #define INIT_VECTOR(v,x,y,z,w) ((v)[0]=x,(v)[1]=y,(v)[2]=z,(v)[3]=w) #define NORM(v) (float)(sqrt((v)[0]*(v)[0] + (v)[1]*(v)[1] + (v)[2]*(v)[2])) enum { X_AXIS=0, Y_AXIS=1, Z_AXIS=2, W_AXIS=3, }; void wait_init( void );