summaryrefslogtreecommitdiffstats
path: root/src/math/point.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/point.h')
-rw-r--r--src/math/point.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/point.h b/src/math/point.h
index 80f80f4..740b275 100644
--- a/src/math/point.h
+++ b/src/math/point.h
@@ -74,6 +74,12 @@ struct Point
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 distance from (0,0) to the point (x,y)
inline float Length()
{