From 4c5996e67b72aa826be537ec1bf49db03c53f3b8 Mon Sep 17 00:00:00 2001 From: sebcrozet Date: Tue, 2 Apr 2019 20:01:16 +0200 Subject: [PATCH] Remove some assertions. --- nalgebra-glm/src/ext/matrix_clip_space.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/nalgebra-glm/src/ext/matrix_clip_space.rs b/nalgebra-glm/src/ext/matrix_clip_space.rs index 97c199ed..17b95b6f 100644 --- a/nalgebra-glm/src/ext/matrix_clip_space.rs +++ b/nalgebra-glm/src/ext/matrix_clip_space.rs @@ -749,15 +749,6 @@ pub fn infinite_perspective_rh_zo(aspect: N, fovy: N, near: N) -> /// # Important note /// The `aspect` and `fovy` argument are interchanged compared to the original GLM API. pub fn reversed_perspective_rh_no(aspect: N, fovy: N, near: N, far: N) -> TMat4 { - assert!( - !relative_eq!(far - near, N::zero()), - "The near-plane and far-plane must not be superimposed." - ); - assert!( - !relative_eq!(aspect, N::zero()), - "The apsect ratio must not be zero." - ); - let one = N::one(); let two: N = crate::convert(2.0); let mut mat = TMat4::zeros(); @@ -787,15 +778,6 @@ pub fn reversed_perspective_rh_no(aspect: N, fovy: N, near: N, far /// # Important note /// The `aspect` and `fovy` argument are interchanged compared to the original GLM API. pub fn reversed_perspective_rh_zo(aspect: N, fovy: N, near: N, far: N) -> TMat4 { - assert!( - !relative_eq!(far - near, N::zero()), - "The near-plane and far-plane must not be superimposed." - ); - assert!( - !relative_eq!(aspect, N::zero()), - "The apsect ratio must not be zero." - ); - let one = N::one(); let two = crate::convert(2.0); let mut mat = TMat4::zeros();