1 /*------------------------------------------------------------------
4 XINVADERS 3D - 3d Shoot'em up
5 Copyright (C) 2000 Don Llopis
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 ------------------------------------------------------------------*/
22 #ifndef MATRIX44x4_DEF
23 #define MATRIX44x4_DEF
28 typedef float MATRIX4
[4][4];
30 extern void Matrix_id ( MATRIX4
);
31 extern void Matrix_zero ( MATRIX4
);
32 extern void Matrix_copy ( MATRIX4
, MATRIX4
);
33 extern void Matrix_print ( MATRIX4
);
34 extern void Matrix_mult ( MATRIX4
, MATRIX4
, MATRIX4
);
35 extern void Matrix_transpose ( MATRIX4
, MATRIX4
);
36 extern void Matrix_vec_mult ( MATRIX4
, VECTOR4
, VECTOR4
);
37 extern void Matrix_vec_multn ( MATRIX4
, VECTOR4
[], VECTOR4
[], int );
39 extern void Matrix_x_rot ( MATRIX4
, float );
40 extern void Matrix_y_rot ( MATRIX4
, float );
41 extern void Matrix_z_rot ( MATRIX4
, float );
43 extern void Matrix_set_xrow ( MATRIX4
, VECTOR4
);
44 extern void Matrix_set_yrow ( MATRIX4
, VECTOR4
);
45 extern void Matrix_set_zrow ( MATRIX4
, VECTOR4
);
47 extern void Matrix_set_xcol ( MATRIX4
, VECTOR4
);
48 extern void Matrix_set_ycol ( MATRIX4
, VECTOR4
);
49 extern void Matrix_set_zcol ( MATRIX4
, VECTOR4
);
51 extern void Matrix_set_trans ( MATRIX4
, VECTOR4
);