mirror of
https://github.com/g-truc/glm.git
synced 2024-11-29 11:24:35 +00:00
Fixed quaternion rotate
This commit is contained in:
parent
45008b225e
commit
b7e770e501
@ -18,7 +18,7 @@ namespace glm
|
|||||||
T const AngleRad(angle);
|
T const AngleRad(angle);
|
||||||
T const Sin = sin(AngleRad * static_cast<T>(0.5));
|
T const Sin = sin(AngleRad * static_cast<T>(0.5));
|
||||||
|
|
||||||
return q * qua<T, Q>::wxyz(cos(AngleRad * static_cast<T>(0.5)), Tmp.x * Sin, Tmp.y * Sin, Tmp.z * Sin);
|
return qua<T, Q>::wxyz(cos(AngleRad * static_cast<T>(0.5)), Tmp.x * Sin, Tmp.y * Sin, Tmp.z * Sin) * q;
|
||||||
}
|
}
|
||||||
}//namespace glm
|
}//namespace glm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user