@@ -366,8 +366,10 @@ impl<S: BaseFloat> Matrix4<S> {
366366 Self :: look_to_rh ( eye, dir, up)
367367 }
368368
369- /// Create a homogeneous transformation matrix that will cause a vector to point at
370- /// `dir`, using `up` for orientation.
369+ /// Creates a homogeneous right-handed look-at transformation matrix.
370+ ///
371+ /// This matrix will transform a vector to point in `dir` direction, using `up` for orientation
372+ /// assuming a right-handed corrdinate system.
371373 pub fn look_to_rh ( eye : Point3 < S > , dir : Vector3 < S > , up : Vector3 < S > ) -> Matrix4 < S > {
372374 let f = dir. normalize ( ) ;
373375 let s = f. cross ( up) . normalize ( ) ;
@@ -382,8 +384,10 @@ impl<S: BaseFloat> Matrix4<S> {
382384 )
383385 }
384386
385- /// Create a homogeneous transformation matrix that will cause a vector to point at
386- /// `dir`, using `up` for orientation.
387+ /// Creates a homogeneous left-handed look-at transformation matrix.
388+ ///
389+ /// This matrix will transform a vector to point in `dir` direction, using `up` for orientation
390+ /// assuming a left-handed corrdinate system.
387391 pub fn look_to_lh ( eye : Point3 < S > , dir : Vector3 < S > , up : Vector3 < S > ) -> Matrix4 < S > {
388392 Matrix4 :: look_to_rh ( eye, -dir, up)
389393 }
@@ -395,14 +399,18 @@ impl<S: BaseFloat> Matrix4<S> {
395399 Matrix4 :: look_to_rh ( eye, center - eye, up)
396400 }
397401
398- /// Create a homogeneous transformation matrix that will cause a vector to point at
399- /// `center`, using `up` for orientation.
402+ /// Creates a homogeneous right-handed look-at transformation matrix.
403+ ///
404+ /// This matrix will transform a vector to point at `center`, using `up` for orientation
405+ /// assuming a right-handed corrdinate system.
400406 pub fn look_at_rh ( eye : Point3 < S > , center : Point3 < S > , up : Vector3 < S > ) -> Matrix4 < S > {
401407 Matrix4 :: look_to_rh ( eye, center - eye, up)
402408 }
403409
404- /// Create a homogeneous transformation matrix that will cause a vector to point at
405- /// `center`, using `up` for orientation.
410+ /// Creates a homogeneous left-handed look-at transformation matrix.
411+ ///
412+ /// This matrix will transform a vector to point at `center`, using `up` for orientation
413+ /// assuming a left-handed corrdinate system.
406414 pub fn look_at_lh ( eye : Point3 < S > , center : Point3 < S > , up : Vector3 < S > ) -> Matrix4 < S > {
407415 Matrix4 :: look_to_lh ( eye, center - eye, up)
408416 }
0 commit comments