mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 17:04:35 +00:00
Update quaternion.inl
This commit is contained in:
parent
1fe48f0d09
commit
3669256fd1
@ -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]);
|
||||
|
||||
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user