Fixed a build problem.
[gljewel.git] / matrix.h
blobf37869e4529675be812fbd5af9e768c2f0c9ab56
1 /**
2 * @file matrix.h
3 * @brief The interface for the gljewel matrix module.
5 * Copyright 2001, 2008 David Ashley <dashxdr@gmail.com>
6 * Copyright 2008 Stephen M. Webb <stephen.webb@bregmasoft.ca>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of Version 2 of the GNU General Public License as
10 * published by the Free Software Foundation.
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 #ifndef GLJEWEL_MATRIX_H_
22 #define GLJEWEL_MATRIX_H_
24 typedef float matrix[4][4];
25 typedef float vector[4];
27 void identitymatrix(matrix *dest);
28 void matrixXmatrix(matrix *dest,matrix *left,matrix *right);
29 void matrixXvector(vector *dest,matrix *left,vector *right);
30 void xrotmatrix(matrix *dest,float angle);
31 void yrotmatrix(matrix *dest,float angle);
32 void zrotmatrix(matrix *dest,float angle);
33 void invertmatrix(matrix *dest,matrix *source);
34 void rotationamtrix(matrix *dest,float angle,float x,float y,float z);
36 #endif /* GLJEWEL_MATRIX_H_ */