From 0f54a847482add64a3bac82312ddd56b34629a52 Mon Sep 17 00:00:00 2001 From: CaptainCarrot Date: Tue, 21 Nov 2017 19:27:11 +0100 Subject: [PATCH] Update quaternion.inl --- glm/gtx/quaternion.inl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/glm/gtx/quaternion.inl b/glm/gtx/quaternion.inl index 6a867d93..92b4a388 100644 --- a/glm/gtx/quaternion.inl +++ b/glm/gtx/quaternion.inl @@ -232,11 +232,11 @@ namespace glm { mat<3, 3, T, Q> result; - result[0] = normalize(cross(direction, up)); // new right - result[1] = cross(result[0], direction); // new up - result[2] = -direction; // new forward + result[0] = normalize(cross(direction, up)); + result[1] = cross(result[0], direction); + result[2] = -direction; - return quat_cast(Result); + return quat_cast(result); } template @@ -244,9 +244,9 @@ namespace glm { mat<3, 3, T, Q> result; - result[0] = normalize(cross(up, direction)); // new right - result[1] = cross(direction, result[0]); // new up - result[2] = direction; // new forward + result[0] = normalize(cross(up, direction)); + result[1] = cross(direction, result[0]); + result[2] = direction; return quat_cast(result); }