+ Matrix4{
+ x: Vector4{ x: sn.0, y: u.0, z: f.0, w: 0.0 },
+ y: Vector4{ x: sn.1, y: u.1, z: f.1, w: 0.0 },
+ z: Vector4{ x: sn.2, y: u.2, z: f.2, w: 0.0 },
+ w: Vector4{ x: p.0, y: p.1, z: p.2, w: 1.0 },
+ }
+ }
+
+ pub fn get_perspview(&self) -> [[f32; 4]; 4] {
+ array4x4(self.get_persp_mat() * self.get_view_mat())
+ }
+
+ pub fn get_perspective(&self) -> [[f32; 4]; 4] {
+ array4x4(self.get_persp_mat())
+ }
+
+ pub fn get_view(&self) -> [[f32; 4]; 4] {
+ array4x4(self.get_view_mat())