X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2FMoof%2Fcml%2Fquaternion%2Fquaternion.h;fp=src%2FMoof%2Fcml%2Fquaternion%2Fquaternion.h;h=6f320f376326353b2c369cff29057d1f4e2510fc;hb=50c1239917f5e443b8ec91773c85ceb3db7da67b;hp=771f34ad0424098a84e895dcb4aa161f5c7a25b2;hpb=1dd005530930657fd6216edc1dfcfa4c270a81c9;p=chaz%2Fyoink diff --git a/src/Moof/cml/quaternion/quaternion.h b/src/Moof/cml/quaternion/quaternion.h index 771f34a..6f320f3 100644 --- a/src/Moof/cml/quaternion/quaternion.h +++ b/src/Moof/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) */