From 7357d17b77320e1dea6eb2dfde25fd2d329c7931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Fri, 4 May 2018 11:22:24 +0200 Subject: [PATCH] Fix typos. --- src/core/construction.rs | 2 +- src/geometry/quaternion_construction.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/construction.rs b/src/core/construction.rs index bf7f64dd..fa3854cc 100644 --- a/src/core/construction.rs +++ b/src/core/construction.rs @@ -114,7 +114,7 @@ where res } - /// Creates a new indentity matrix. + /// Creates a new identity matrix. /// /// If the matrix is not square, the largest square submatrix starting at index `(0, 0)` is set /// to the identity matrix. All other entries are set to zero. diff --git a/src/geometry/quaternion_construction.rs b/src/geometry/quaternion_construction.rs index 63aea8ea..e790925f 100644 --- a/src/geometry/quaternion_construction.rs +++ b/src/geometry/quaternion_construction.rs @@ -351,7 +351,7 @@ impl UnitQuaternion { /// Creates a new unit quaternion rotation from a rotation axis scaled by the rotation angle. /// - /// If `axisangle` has a magnitude smaller than `N::default_epsilon()`, this returns the indentity rotation. + /// If `axisangle` has a magnitude smaller than `N::default_epsilon()`, this returns the identity rotation. #[inline] pub fn new(axisangle: Vector) -> Self where @@ -364,7 +364,7 @@ impl UnitQuaternion { /// Creates a new unit quaternion rotation from a rotation axis scaled by the rotation angle. /// - /// If `axisangle` has a magnitude smaller than `eps`, this returns the indentity rotation. + /// If `axisangle` has a magnitude smaller than `eps`, this returns the identity rotation. #[inline] pub fn new_eps(axisangle: Vector, eps: N) -> Self where @@ -377,7 +377,7 @@ impl UnitQuaternion { /// Creates a new unit quaternion rotation from a rotation axis scaled by the rotation angle. /// - /// If `axisangle` has a magnitude smalle than `N::default_epsilon()`, this returns the indentity rotation. + /// If `axisangle` has a magnitude smaller than `N::default_epsilon()`, this returns the identity rotation. /// Same as `Self::new(axisangle)`. #[inline] pub fn from_scaled_axis(axisangle: Vector) -> Self @@ -389,7 +389,7 @@ impl UnitQuaternion { /// Creates a new unit quaternion rotation from a rotation axis scaled by the rotation angle. /// - /// If `axisangle` has a mangnitude smaller than `eps`, this returns the indentity rotation. + /// If `axisangle` has a magnitude smaller than `eps`, this returns the identity rotation. /// Same as `Self::new(axisangle)`. #[inline] pub fn from_scaled_axis_eps(axisangle: Vector, eps: N) -> Self