summaryrefslogtreecommitdiffstats
path: root/src/math/vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/vector.h')
-rw-r--r--src/math/vector.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/vector.h b/src/math/vector.h
index 65fc2f9..148d648 100644
--- a/src/math/vector.h
+++ b/src/math/vector.h
@@ -79,6 +79,12 @@ struct Vector
return (float*)this;
}
+ //! Returns the struct cast to <tt>const float*</tt> array; use with care!
+ inline const float* Array() const
+ {
+ return (const float*)this;
+ }
+
//! Returns the vector length
inline float Length() const
{