matrix: prefer operators to functions

This commit is contained in:
Danny Robson 2015-02-19 13:24:00 +11:00
parent f97c932df7
commit 70d752e5d0

View File

@ -479,7 +479,7 @@ matrix<T>::look_at (util::point<3,T> eye,
util::point<3,T> centre,
util::vector<3,T> up)
{
const auto f = eye.to (centre).normalise ();
const auto f = (centre - eye).normalise ();
const auto s = cross (f, up).normalise ();
const auto u = cross (s, f);