diff options
author | Stijn Buys <ingar@osirion.org> | 2008-04-27 13:08:12 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-04-27 13:08:12 +0000 |
commit | a4b36e6d1e20b5036d1ed7cf9f61a48dbbf77812 (patch) | |
tree | 7efd0048fd8c10b1f04d427c78e3ac8da402f059 /src/math/vector3f.h | |
parent | fe95954f9d17c9dade1827fe5d4cf8cffffddbce (diff) |
3D flight
Diffstat (limited to 'src/math/vector3f.h')
-rw-r--r-- | src/math/vector3f.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math/vector3f.h b/src/math/vector3f.h index e94f4c7..ddb9e38 100644 --- a/src/math/vector3f.h +++ b/src/math/vector3f.h @@ -113,6 +113,9 @@ public: /// WARNING: vector must not be (0, 0, 0) void normalize(); + /// a pointer to the internal data + inline float *ptr() const { return (float *) coord; } + /* static functions */ /// Returns the unity vector on the X-axis @@ -136,6 +139,7 @@ public: float &y; float &z; +private: float coord[3]; }; |