quaternion: add convenience quaternion-vector multiply

This commit is contained in:
Danny Robson 2018-05-08 15:51:39 +10:00
parent f53b9ace1b
commit 749b5179a3

View File

@ -75,6 +75,15 @@ namespace util {
rotate (vector3<T>, quaternion<T>);
//-------------------------------------------------------------------------
template <typename T>
vector3<T>
operator* (quaternion<T> const q, vector3<T> const v)
{
return rotate (v, q);
}
///////////////////////////////////////////////////////////////////////////
template <typename T>
constexpr