pub struct Mat4 {
pub v: [f32; 16],
}
Fields§
§v: [f32; 16]
Implementations§
Source§impl Mat4
impl Mat4
pub fn identity() -> Mat4
pub fn rotate_tsrt(t1: Vec3, s: Vec3, r: Vec3, t2: Vec3) -> Mat4
pub fn perspective(fov_y: f32, aspect: f32, near: f32, far: f32) -> Mat4
pub fn scale_translate( sx: f32, sy: f32, sz: f32, x: f32, y: f32, z: f32, ) -> Mat4
pub fn ortho( left: f32, right: f32, top: f32, bottom: f32, near: f32, far: f32, scalex: f32, scaley: f32, ) -> Mat4
pub fn transform_vec4(&self, v: Vec4) -> Vec4
Trait Implementations§
impl Copy for Mat4
Auto Trait Implementations§
impl Freeze for Mat4
impl RefUnwindSafe for Mat4
impl Send for Mat4
impl Sync for Mat4
impl Unpin for Mat4
impl UnwindSafe for Mat4
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more