mirror of
https://github.com/g-truc/glm.git
synced 2024-11-17 07:14:36 +00:00
Add files via upload
This commit is contained in:
parent
5bcb204cde
commit
c4cd84c09e
@ -232,9 +232,9 @@ namespace glm
|
|||||||
{
|
{
|
||||||
mat<3, 3, T, Q> Result;
|
mat<3, 3, T, Q> Result;
|
||||||
|
|
||||||
Result[2] = -direction;
|
Result[0] = normalize(cross(direction, up)); // new right
|
||||||
Result[0] = normalize(cross(up, Result[2]));
|
Result[1] = cross(Result[0], direction); // new up
|
||||||
Result[1] = cross(Result[2], Result[0]);
|
Result[2] = -direction; // new forward
|
||||||
|
|
||||||
return quat_cast(Result);
|
return quat_cast(Result);
|
||||||
}
|
}
|
||||||
@ -244,9 +244,9 @@ namespace glm
|
|||||||
{
|
{
|
||||||
mat<3, 3, T, Q> Result;
|
mat<3, 3, T, Q> Result;
|
||||||
|
|
||||||
Result[2] = direction;
|
Result[0] = normalize(cross(up, direction)); // new right
|
||||||
Result[0] = normalize(cross(up, Result[2]));
|
Result[1] = cross(direction, Result[0]); // new up
|
||||||
Result[1] = cross(Result[2], Result[0]);
|
Result[2] = direction; // new forward
|
||||||
|
|
||||||
return quat_cast(Result);
|
return quat_cast(Result);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user