Math/Quaternion: Fix compilation of operator* with double instance

This commit is contained in:
Lynix 2016-10-27 10:47:36 +02:00
parent e59bd4ba35
commit 9328a8124d
1 changed files with 3 additions and 3 deletions

View File

@ -553,9 +553,9 @@ namespace Nz
template<typename T>
Vector3<T> Quaternion<T>::operator*(const Vector3<T>& vec) const
{
Vector3f quatVec(x, y, z);
Vector3f uv = quatVec.CrossProduct(vec);
Vector3f uuv = quatVec.CrossProduct(uv);
Vector3<T> quatVec(x, y, z);
Vector3<T> uv = quatVec.CrossProduct(vec);
Vector3<T> uuv = quatVec.CrossProduct(uv);
uv *= F(2.0) * w;
uuv *= F(2.0);