pub struct Mat4 { /* private fields */ }Implementations§
Source§impl Mat4
impl Mat4
pub fn new_perspective( aspect: f32, field_of_view_in_radians: f32, near: f32, far: f32, ) -> Self
pub fn as_slice(&self) -> &[f32]
pub fn new_projection(width: f32, height: f32, depth: f32) -> Self
pub fn multiply(&self, other: &Mat4) -> Mat4
pub fn new_translation(tx: f32, ty: f32, tz: f32) -> Mat4
pub fn look_at_rh( camera_position: &Point3, target: &Point3, up: &Vector3, ) -> Mat4
Trait Implementations§
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