# Vector functions [Math]

## Data Structures

struct  VECTOR
Vector struct. More...

## Functions

INLINE VECTORvec_set (VECTOR *vd, FIXED x, FIXED y, FIXED z)
Initialize a vector.
INLINE VECTORvec_add (VECTOR *vd, const VECTOR *va, const VECTOR *vb)
Add vectors: d = a + b;.
INLINE VECTORvec_sub (VECTOR *vd, const VECTOR *va, const VECTOR *vb)
Subtract vectors: d = a - b;.
INLINE VECTORvec_mul (VECTOR *vd, const VECTOR *va, const VECTOR *vb)
Multiply vectors elements: d = S(ax, ay, az) ·b.
INLINE VECTORvec_scale (VECTOR *vd, const VECTOR *va, FIXED c)
Scale vector: d = c*a.
INLINE FIXED vec_dot (const VECTOR *va, const VECTOR *vb)
Dot-product: d = a ·b.
INLINE VECTORvec_add_eq (VECTOR *vd, const VECTOR *vb)
Increment vector: d += b;.
INLINE VECTORvec_sub_eq (VECTOR *vd, const VECTOR *vb)
Decrease vector: d -= b;.
INLINE VECTORvec_mul_eq (VECTOR *vd, const VECTOR *vb)
Multiply vectors elements: d = S(dx, dy, dz) ·b.
INLINE VECTORvec_scale_eq (VECTOR *vd, FIXED c)
Scale vector: d = c*d.
VECTORvec_cross (VECTOR *vd, const VECTOR *va, const VECTOR *vb)

## Detailed Description

Generated on Mon Aug 25 17:03:57 2008 for libtonc by  1.5.3