Skip to content

Commit

Permalink
Update quaternion.inl
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainCarrot authored Sep 14, 2017
1 parent 1fe48f0 commit 3669256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glm/gtx/quaternion.inl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ namespace glm
{
mat<3, 3, T, Q> Result;

Result[2] = -normalize(direction);
Result[2] = -direction;
Result[0] = normalize(cross(up, Result[2]));
Result[1] = cross(Result[2], Result[0]);

Expand All @@ -242,7 +242,7 @@ namespace glm
{
mat<3, 3, T, Q> Result;

Result[2] = normalize(direction);
Result[2] = direction;
Result[0] = normalize(cross(up, Result[2]));
Result[1] = cross(Result[2], Result[0]);

Expand Down

0 comments on commit 3669256

Please sign in to comment.