diff options
Diffstat (limited to 'src/math/vector.h')
-rw-r--r-- | src/math/vector.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/vector.h b/src/math/vector.h index 3c756f2..baba6bb 100644 --- a/src/math/vector.h +++ b/src/math/vector.h @@ -72,6 +72,12 @@ struct Vector x = y = z = 0.0f; } + //! Returns the struct cast to \c float* array; use with care! + inline float* Array() + { + return (float*)this; + } + //! Returns the vector length inline float Length() const { |