mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 10:14:35 +00:00
Resolved issue #58
This commit is contained in:
parent
4d71624067
commit
8ed5f541ff
@ -117,11 +117,12 @@ namespace glm
|
|||||||
T const delta
|
T const delta
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
detail::tmat4x4<T> dltRotation = m2 * transpose(m1);
|
detail::tmat4x4<T> m1rot = extractMatrixRotation(m1);
|
||||||
|
detail::tmat4x4<T> dltRotation = m2 * transpose(m1rot);
|
||||||
detail::tvec3<T> dltAxis;
|
detail::tvec3<T> dltAxis;
|
||||||
T dltAngle;
|
T dltAngle;
|
||||||
axisAngle(dltRotation, dltAxis, dltAngle);
|
axisAngle(dltRotation, dltAxis, dltAngle);
|
||||||
detail::tmat4x4<T> out = axisAngleMatrix(dltAxis, dltAngle * delta) * extractMatrixRotation(m1);
|
detail::tmat4x4<T> out = axisAngleMatrix(dltAxis, dltAngle * delta) * m1rot;
|
||||||
out[3][0] = m1[3][0] + delta * (m2[3][0] - m1[3][0]);
|
out[3][0] = m1[3][0] + delta * (m2[3][0] - m1[3][0]);
|
||||||
out[3][1] = m1[3][1] + delta * (m2[3][1] - m1[3][1]);
|
out[3][1] = m1[3][1] + delta * (m2[3][1] - m1[3][1]);
|
||||||
out[3][2] = m1[3][2] + delta * (m2[3][2] - m1[3][2]);
|
out[3][2] = m1[3][2] + delta * (m2[3][2] - m1[3][2]);
|
||||||
|
Loading…
Reference in New Issue
Block a user