source: anuga_work/development/anugavis/src/vector.h @ 5292

Last change on this file since 5292 was 5292, checked in by jack, 17 years ago

anugavis: Some basic camera control and frame stepping.

File size: 317 bytes
Line 
1#ifndef VECTOR_H
2#define VECTOR_H
3
4typedef float vector[3];
5/* Useful vector operations. */
6float vlen(vector v);
7void vscale(vector v, float scale, vector result);
8void vsub(vector v1, vector v2, vector result);
9float vdot(vector v1, vector v2);
10void vcross(vector v1, vector v2, vector result);
11
12#endif
Note: See TracBrowser for help on using the repository browser.