@@ -387,7 +387,7 @@ impl<S: BaseFloat> Matrix4<S> {
387387 /// `center`, using `up` for orientation.
388388 #[ deprecated = "Use Matrix4::look_at_rh" ]
389389 pub fn look_at ( eye : Point3 < S > , center : Point3 < S > , up : Vector3 < S > ) -> Matrix4 < S > {
390- Matrix4 :: look_at_dir ( eye, center - eye , up)
390+ Matrix4 :: look_at_rh ( eye, center, up)
391391 }
392392
393393 /// Create a homogeneous transformation matrix that will cause a vector to point at
@@ -1122,7 +1122,7 @@ impl<S: BaseFloat> Transform<Point2<S>> for Matrix3<S> {
11221122impl < S : BaseFloat > Transform < Point3 < S > > for Matrix3 < S > {
11231123 fn look_at ( eye : Point3 < S > , center : Point3 < S > , up : Vector3 < S > ) -> Matrix3 < S > {
11241124 let dir = center - eye;
1125- Matrix3 :: look_at ( dir, up)
1125+ Matrix3 :: look_to_lh ( dir, up)
11261126 }
11271127
11281128 fn look_at_lh ( eye : Point3 < S > , center : Point3 < S > , up : Vector3 < S > ) -> Matrix3 < S > {
@@ -1155,7 +1155,7 @@ impl<S: BaseFloat> Transform<Point3<S>> for Matrix3<S> {
11551155impl < S : BaseFloat > Transform < Point3 < S > > for Matrix4 < S > {
11561156
11571157 fn look_at ( eye : Point3 < S > , center : Point3 < S > , up : Vector3 < S > ) -> Matrix4 < S > {
1158- Matrix4 :: look_at ( eye, center, up)
1158+ Matrix4 :: look_at_rh ( eye, center, up)
11591159 }
11601160
11611161 fn look_at_lh ( eye : Point3 < S > , center : Point3 < S > , up : Vector3 < S > ) -> Matrix4 < S > {
0 commit comments