diff --git a/src/matrix.rs b/src/matrix.rs index df8b4e9..fcf331e 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -191,11 +191,7 @@ impl Matrix3 { /// `dir`, using `up` for orientation. #[deprecated = "Use Matrix3::look_to_lh"] pub fn look_at(dir: Vector3, up: Vector3) -> Matrix3 { - let dir = dir.normalize(); - let side = up.cross(dir).normalize(); - let up = dir.cross(side).normalize(); - - Matrix3::from_cols(side, up, dir).transpose() + Matrix3::look_to_lh(dir, up) } /// Create a rotation matrix that will cause a vector to point at