Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
964 - 1
#ifndef _VECTOR_H_
2
#define _VECTOR_H_
3
 
4
typedef struct vector
5
{
6
        float x, y, z;
7
} vector;
8
 
9
extern void vector_cross(const vector *a, const vector *b, vector *out);
10
extern float vector_dot(const vector *a, const vector *b);
11
extern void vector_normalize(vector *a);
12
extern float vector_magnitude(const vector *a);
13
 
14
#endif