matrix: use longer names for look_at variables
This commit is contained in:
parent
048abab55e
commit
01b1c01a07
@ -211,9 +211,11 @@ util::look_at (const util::point<3,T> eye,
|
|||||||
{
|
{
|
||||||
CHECK (is_normalised (up));
|
CHECK (is_normalised (up));
|
||||||
|
|
||||||
const auto f = normalised (centre - eye);
|
const auto forward = normalised (centre - eye);
|
||||||
const auto s = normalised (cross (f, up));
|
const auto side = normalised (cross (forward, up));
|
||||||
const auto u = cross (s, f);
|
const auto newup = cross (side, forward);
|
||||||
|
|
||||||
|
const auto &f = forward, &s = side, &u = newup;
|
||||||
|
|
||||||
const util::matrix4<T> rot {{
|
const util::matrix4<T> rot {{
|
||||||
{ s.x, s.y, s.z, 0 },
|
{ s.x, s.y, s.z, 0 },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user