annotate mytype.h @ 0:0fae5658fb0b

Initial revision
author gongo
date Thu, 02 Nov 2006 08:55:19 +0000
parents
children 0b65ca27f113
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
1 #include<math.h>
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
3 #define RADIAN(d) ((d)*M_PI/180.0)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
4 #define INIT_VECTOR(v,x,y,z,w) ((v)[0]=x,(v)[1]=y,(v)[2]=z,(v)[3]=w)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
5 #define NORM(v) (float)(sqrt((v)[0]*(v)[0] + (v)[1]*(v)[1] + (v)[2]*(v)[2]))
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
6
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
7 enum { X_AXIS=0, Y_AXIS=1, Z_AXIS=2, W_AXIS=3, };