mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 02:34:35 +00:00
Fixed merge
This commit is contained in:
commit
cc02b86fb1
@ -204,8 +204,12 @@ namespace glm
|
|||||||
if(all(equal(Normal, Up)))
|
if(all(equal(Normal, Up)))
|
||||||
return detail::tmat4x4<T, P>(T(1));
|
return detail::tmat4x4<T, P>(T(1));
|
||||||
|
|
||||||
detail::tvec3<T, P> RotationAxis = cross(Up, Normal);
|
detail::tvec3<T> RotationAxis = cross(Up, Normal);
|
||||||
T Angle = degrees(acos(dot(Normal, Up)));
|
# ifdef GLM_FORCE_RADIANS
|
||||||
|
T Angle = acos(dot(Normal, Up));
|
||||||
|
# else
|
||||||
|
T Angle = degrees(acos(dot(Normal, Up)));
|
||||||
|
# endif
|
||||||
return rotate(Angle, RotationAxis);
|
return rotate(Angle, RotationAxis);
|
||||||
}
|
}
|
||||||
}//namespace glm
|
}//namespace glm
|
||||||
|
@ -70,6 +70,7 @@ GLM 0.9.4.6: 2013-08-XX
|
|||||||
- Added use of GCC frontend on Unix for ICC and Visual C++ fronted on Windows
|
- Added use of GCC frontend on Unix for ICC and Visual C++ fronted on Windows
|
||||||
for ICC
|
for ICC
|
||||||
- Added compilation errors for unsupported compiler versions
|
- Added compilation errors for unsupported compiler versions
|
||||||
|
- Fixed glm::orientation with GLM_FORCE_RADIANS defined #112
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
GLM 0.9.4.5: 2013-08-12
|
GLM 0.9.4.5: 2013-08-12
|
||||||
|
Loading…
Reference in New Issue
Block a user