Go to the documentation of this file.
24#define V3D_TO_V2D(v3,v2,width,height,distance) \
29 F2I(((distance) * (v3).x / (v3).z),Xp) ; \
30 F2I(((distance) * (v3).y / (v3).z),Yp) ; \
31 (v2).x = Xp + ((width)>>1); \
32 (v2).y = -Yp + ((height)>>1); \
34 else (v2).x=(v2).y=-666; \
41#define Y_ROTATE_V3D(vi,vf,sina,cosa)\
43 (vf).x = ((vi).x * (cosa)) - ((vi).z * (sina));\
44 (vf).z = ((vi).x * (sina)) + ((vi).z * (cosa));\
51#define TRANSLATE_V3D(vsrc,vdest)\
53 (vdest).x += (vsrc).x;\
54 (vdest).y += (vsrc).y;\
55 (vdest).z += (vsrc).z;\
58#define MUL_V3D(lf,v) {(v).x*=(lf);(v).y*=(lf);(v).z*=(lf);}