Fixed glm::orientation with GLM_FORCE_RADIANS defined #112
This commit is contained in:
@@ -205,7 +205,11 @@ namespace glm
|
||||
return detail::tmat4x4<T>(T(1));
|
||||
|
||||
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);
|
||||
}
|
||||
}//namespace glm
|
||||
|
||||
Reference in New Issue
Block a user