X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fcml%2Fquaternion%2Fquaternion.h;h=6f320f376326353b2c369cff29057d1f4e2510fc;hp=771f34ad0424098a84e895dcb4aa161f5c7a25b2;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hpb=0fffd0097d7b496454413e57b398c903ecc252e4 diff --git a/src/cml/quaternion/quaternion.h b/src/cml/quaternion/quaternion.h index 771f34a..6f320f3 100644 --- a/src/cml/quaternion/quaternion.h +++ b/src/cml/quaternion/quaternion.h @@ -445,6 +445,13 @@ class quaternion return (*this = *this * e); } + /** Return access to the data as a raw pointer. */ + typename vector_type::pointer data() { return m_q.data(); } + + /** Return access to the data as a const raw pointer. */ + const typename vector_type::pointer data() const { return m_q.data(); } + + /* NOTE: Quaternion division no longer supported, but I'm leaving the code here for reference (Jesse) */