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 | |
---|
4 | typedef float vector[3]; |
---|
5 | /* Useful vector operations. */ |
---|
6 | float vlen(vector v); |
---|
7 | void vscale(vector v, float scale, vector result); |
---|
8 | void vsub(vector v1, vector v2, vector result); |
---|
9 | float vdot(vector v1, vector v2); |
---|
10 | void vcross(vector v1, vector v2, vector result); |
---|
11 | |
---|
12 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.