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

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

Added vector module.

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