Mercurial > hg > old > magoroku_racing
annotate mytype.h @ 102:31b24eaf05cc
remove .o
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 02 Jun 2011 23:11:44 +0900 |
parents | 0b65ca27f113 |
children |
rev | line source |
---|---|
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
1 /* mytype.h */ |
0 | 2 #include<math.h> |
3 | |
4 #define RADIAN(d) ((d)*M_PI/180.0) | |
5 #define INIT_VECTOR(v,x,y,z,w) ((v)[0]=x,(v)[1]=y,(v)[2]=z,(v)[3]=w) | |
6 #define NORM(v) (float)(sqrt((v)[0]*(v)[0] + (v)[1]*(v)[1] + (v)[2]*(v)[2])) | |
7 | |
8 enum { X_AXIS=0, Y_AXIS=1, Z_AXIS=2, W_AXIS=3, }; | |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
9 |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
10 void wait_init( void ); |