Fix look_at.

This commit is contained in:
Sébastien Crozet 2013-07-23 01:06:20 +02:00
parent e2f34023ed
commit cd2aeb4861
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ impl<N: Clone + DivisionRing + Algebraic> Transform<Rotmat<Mat3<N>>, Vec3<N>>
pub fn look_at(&mut self, eye: &Vec3<N>, at: &Vec3<N>, up: &Vec3<N>)
{
self.submat.look_at(&(*at - *eye), up);
self.subtrans = self.submat.rotate(&-eye);
self.subtrans = eye.clone();
}
}