forgotten commit. disabled until egl is adapted.
[AROS-Contrib.git] / Games / XInvaders3D / vec4x1.h
blob2be9acfd7f9a78fb5a193431a0bbfb911623790c
1 /*------------------------------------------------------------------
2 vec4x1.h:
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 VECTOR44x1_DEF
23 #define VECTOR44x1_DEF
25 typedef float VECTOR4 [4];
27 extern void Vector_init ( VECTOR4 );
28 extern void Vector_set ( VECTOR4, float, float, float );
29 extern void Vector_copy ( VECTOR4, VECTOR4 );
30 extern void Vector_print ( VECTOR4 );
31 extern void Vector_negate ( VECTOR4 );
32 extern void Vector_add ( VECTOR4, VECTOR4, VECTOR4 );
33 extern void Vector_addd ( VECTOR4, VECTOR4 );
34 extern void Vector_sub ( VECTOR4, VECTOR4, VECTOR4 );
35 extern void Vector_subb ( VECTOR4, VECTOR4 );
36 extern void Vector_cross ( VECTOR4, VECTOR4, VECTOR4 );
37 extern float Vector_mag ( VECTOR4 );
38 extern float Vector_mag_squared ( VECTOR4 );
39 extern float Vector_dist ( VECTOR4, VECTOR4 );
40 extern float Vector_dist_squared ( VECTOR4, VECTOR4 );
41 extern float Vector_dot ( VECTOR4, VECTOR4 );
42 extern void Vector_norm ( VECTOR4 );
43 extern void Vector_scale ( VECTOR4, float );
45 #endif