fix typo: apsect should be aspect

This commit is contained in:
Philippe Renon 2020-10-11 10:41:25 +02:00
parent f79f1972e8
commit fb15658cc9
3 changed files with 6 additions and 6 deletions

View File

@ -530,7 +530,7 @@ pub fn perspective_lh_no<N: RealField>(aspect: N, fovy: N, near: N, far: N) -> T
); );
assert!( assert!(
!relative_eq!(aspect, N::zero()), !relative_eq!(aspect, N::zero()),
"The apsect ratio must not be zero." "The aspect ratio must not be zero."
); );
let one = N::one(); let one = N::one();
@ -566,7 +566,7 @@ pub fn perspective_lh_zo<N: RealField>(aspect: N, fovy: N, near: N, far: N) -> T
); );
assert!( assert!(
!relative_eq!(aspect, N::zero()), !relative_eq!(aspect, N::zero()),
"The apsect ratio must not be zero." "The aspect ratio must not be zero."
); );
let one = N::one(); let one = N::one();
@ -632,7 +632,7 @@ pub fn perspective_rh_no<N: RealField>(aspect: N, fovy: N, near: N, far: N) -> T
); );
assert!( assert!(
!relative_eq!(aspect, N::zero()), !relative_eq!(aspect, N::zero()),
"The apsect ratio must not be zero." "The aspect ratio must not be zero."
); );
let negone = -N::one(); let negone = -N::one();
@ -669,7 +669,7 @@ pub fn perspective_rh_zo<N: RealField>(aspect: N, fovy: N, near: N, far: N) -> T
); );
assert!( assert!(
!relative_eq!(aspect, N::zero()), !relative_eq!(aspect, N::zero()),
"The apsect ratio must not be zero." "The aspect ratio must not be zero."
); );
let negone = -N::one(); let negone = -N::one();

View File

@ -151,7 +151,7 @@ impl<N: RealField> Orthographic3<N> {
); );
assert!( assert!(
!relative_eq!(aspect, N::zero()), !relative_eq!(aspect, N::zero()),
"The apsect ratio must not be zero." "The aspect ratio must not be zero."
); );
let half: N = crate::convert(0.5); let half: N = crate::convert(0.5);

View File

@ -75,7 +75,7 @@ impl<N: RealField> Perspective3<N> {
); );
assert!( assert!(
!relative_eq!(aspect, N::zero()), !relative_eq!(aspect, N::zero()),
"The apsect ratio must not be zero." "The aspect ratio must not be zero."
); );
let matrix = Matrix4::identity(); let matrix = Matrix4::identity();