From 6bd81b8fbc1038d1c8c7f6fb2c582a89673e9891 Mon Sep 17 00:00:00 2001 From: Olivier Sohn Date: Sat, 21 Oct 2017 21:43:47 +0200 Subject: [PATCH] use quat_identity --- glm/gtx/quaternion.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/gtx/quaternion.inl b/glm/gtx/quaternion.inl index f57082fa..b99b869f 100644 --- a/glm/gtx/quaternion.inl +++ b/glm/gtx/quaternion.inl @@ -185,8 +185,8 @@ namespace glm vec<3, T, Q> rotationAxis; if(cosTheta >= static_cast(1) - epsilon()) { - // orig and dest point in the same direction : return identity quaternion. - return quat(1, 0, 0, 0); + // orig and dest point in the same direction + return quat_identity(); } if(cosTheta < static_cast(-1) + epsilon())