matrix: use longer names for look_at variables

This commit is contained in:
Danny Robson 2018-03-06 13:54:12 +11:00
parent 048abab55e
commit 01b1c01a07

View File

@ -211,9 +211,11 @@ util::look_at (const util::point<3,T> eye,
{
CHECK (is_normalised (up));
const auto f = normalised (centre - eye);
const auto s = normalised (cross (f, up));
const auto u = cross (s, f);
const auto forward = normalised (centre - eye);
const auto side = normalised (cross (forward, up));
const auto newup = cross (side, forward);
const auto &f = forward, &s = side, &u = newup;
const util::matrix4<T> rot {{
{ s.x, s.y, s.z, 0 },