Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/vector3f.h')
-rw-r--r--src/math/vector3f.h4
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];
};