Subversion Repositories Games.Carmageddon

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 pmbaty 1
#ifndef _VECTOR_H_
2
#define _VECTOR_H_
3
 
4
#include "brender/br_types.h"
5
 
6
void BrVector2Copy(br_vector2* v1, br_vector2* v2);
7
 
8
void BrVector2Set(br_vector2* v1, br_scalar s1, br_scalar s2);
9
 
10
void BrVector2SetInt(br_vector2* v1, int i1, int i2);
11
 
12
void BrVector2SetFloat(br_vector2* v1, float f1, float f2);
13
 
14
void BrVector2Negate(br_vector2* v1, br_vector2* v2);
15
 
16
void BrVector2Add(br_vector2* v1, br_vector2* v2, br_vector2* v3);
17
 
18
void BrVector2Accumulate(br_vector2* v1, br_vector2* v2);
19
 
20
void BrVector2Sub(br_vector2* v1, br_vector2* v2, br_vector2* v3);
21
 
22
void BrVector2Scale(br_vector2* v1, br_vector2* v2, br_scalar s);
23
 
24
void BrVector2InvScale(br_vector2* v1, br_vector2* v2, br_scalar s);
25
 
26
br_scalar BrVector2Dot(br_vector2* v1, br_vector2* v2);
27
 
28
br_scalar BrVector2Length(br_vector2* v1);
29
 
30
br_scalar BrVector2LengthSquared(br_vector2* v1);
31
 
32
void BrVector3Copy(br_vector3* v1, br_vector3* v2);
33
 
34
void BrVector3Set(br_vector3* v1, br_scalar s1, br_scalar s2, br_scalar s3);
35
 
36
void BrVector3SetInt(br_vector3* v1, int i1, int i2, int i3);
37
 
38
void BrVector3SetFloat(br_vector3* v1, float f1, float f2, float f3);
39
 
40
void BrVector3Negate(br_vector3* v1, br_vector3* v2);
41
 
42
void BrVector3Add(br_vector3* v1, br_vector3* v2, br_vector3* v3);
43
 
44
void BrVector3Accumulate(br_vector3* v1, br_vector3* v2);
45
 
46
void BrVector3Sub(br_vector3* v1, br_vector3* v2, br_vector3* v3);
47
 
48
void BrVector3Scale(br_vector3* v1, br_vector3* v2, br_scalar s);
49
 
50
void BrVector3InvScale(br_vector3* v1, br_vector3* v2, br_scalar s);
51
 
52
br_scalar BrVector3Dot(br_vector3* v1, br_vector3* v2);
53
 
54
void BrVector3Cross(br_vector3* v1, br_vector3* v2, br_vector3* v3);
55
 
56
br_scalar BrVector3Length(br_vector3* v1);
57
 
58
br_scalar BrVector3LengthSquared(br_vector3* v1);
59
 
60
void BrVector3Normalise(br_vector3* v1, br_vector3* v2);
61
 
62
void BrVector3NormaliseLP(br_vector3* v1, br_vector3* v2);
63
 
64
br_scalar BrVector4Dot(br_vector4* v1, br_vector4* v2);
65
 
66
void BrVector4Copy(br_vector4* v1, br_vector4* v2);
67
 
68
br_scalar BrFVector2Dot(br_fvector2* v1, br_vector2* v2);
69
 
70
void BrFVector3Copy(br_fvector3* v1, br_vector3* v2);
71
 
72
void BrVector3ScaleF(br_vector3* v1, br_fvector3* v2, br_scalar s);
73
 
74
br_scalar BrFVector3Dot(br_fvector3* v1, br_vector3* v2);
75
 
76
void BrFVector3Normalise(br_fvector3* v1, br_vector3* v2);
77
 
78
void BrFVector3NormaliseLP(br_fvector3* v1, br_vector3* v2);
79
 
80
void BrVector2Normalise(br_vector2* v1, br_vector2* v2);
81
 
82
#endif