fix some typos

This commit is contained in:
Martin Lindhe 2017-11-19 13:30:15 +01:00
parent 43a6b2be8c
commit 2acb4a968a
3 changed files with 5 additions and 5 deletions

View file

@ -14,7 +14,7 @@
// limitations under the License. // limitations under the License.
//! Points are fixed positions in affine space with no length or direction. This //! Points are fixed positions in affine space with no length or direction. This
//! disinguishes them from vectors, which have a length and direction, but do //! distinguishes them from vectors, which have a length and direction, but do
//! not have a fixed position. //! not have a fixed position.
use num_traits::{NumCast, Bounded}; use num_traits::{NumCast, Bounded};

View file

@ -35,9 +35,9 @@ pub fn perspective<S: BaseFloat, A: Into<Rad<S>>>(fovy: A, aspect: S, near: S, f
}.into() }.into()
} }
/// Create a perspective matrix from a view frustrum. /// Create a perspective matrix from a view frustum.
/// ///
/// This is the equivalent of the now deprecated [glFrustrum] /// This is the equivalent of the now deprecated [glFrustum]
/// (http://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml) function. /// (http://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml) function.
pub fn frustum<S: BaseFloat>(left: S, right: S, bottom: S, top: S, near: S, far: S) -> Matrix4<S> { pub fn frustum<S: BaseFloat>(left: S, right: S, bottom: S, top: S, near: S, far: S) -> Matrix4<S> {
Perspective { Perspective {

View file

@ -128,7 +128,7 @@ impl<S: BaseFloat> Quaternion<S> {
(self * (S::one() - amount) + other * amount).normalize() (self * (S::one() - amount) + other * amount).normalize()
} }
/// Spherical Linear Intoperlation /// Spherical Linear Interpolation
/// ///
/// Return the spherical linear interpolation between the quaternion and /// Return the spherical linear interpolation between the quaternion and
/// `other`. Both quaternions should be normalized first. /// `other`. Both quaternions should be normalized first.
@ -136,7 +136,7 @@ impl<S: BaseFloat> Quaternion<S> {
/// # Performance notes /// # Performance notes
/// ///
/// The `acos` operation used in `slerp` is an expensive operation, so /// The `acos` operation used in `slerp` is an expensive operation, so
/// unless your quarternions are far away from each other it's generally /// unless your quaternions are far away from each other it's generally
/// more advisable to use `nlerp` when you know your rotations are going /// more advisable to use `nlerp` when you know your rotations are going
/// to be small. /// to be small.
/// ///