pub struct Matrix4x4 { /* private fields */ }Expand description
A 4x4 matrix stored in column-major order, used for 3D transformations.
Implementations§
Source§impl Matrix4x4
Implements matrix operations for Matrix4x4.
impl Matrix4x4
Implements matrix operations for Matrix4x4.
Sourcepub fn translation(translation: Vector3D) -> Matrix4x4
pub fn translation(translation: Vector3D) -> Matrix4x4
Sourcepub fn rotation(quaternion: Quaternion) -> Matrix4x4
pub fn rotation(quaternion: Quaternion) -> Matrix4x4
Sourcepub fn orthographic(
left: f64,
right: f64,
bottom: f64,
top: f64,
near: f64,
far: f64,
) -> Matrix4x4
pub fn orthographic( left: f64, right: f64, bottom: f64, top: f64, near: f64, far: f64, ) -> Matrix4x4
Source§impl Matrix4x4
impl Matrix4x4
pub fn get_elements(&self) -> [f64; 16]
pub fn get_mut_elements(&mut self) -> &mut [f64; 16]
pub fn set_elements(&mut self, val: [f64; 16]) -> &mut Self
Trait Implementations§
impl Copy for Matrix4x4
Source§impl PartialOrd for Matrix4x4
impl PartialOrd for Matrix4x4
impl StructuralPartialEq for Matrix4x4
Auto Trait Implementations§
impl Freeze for Matrix4x4
impl RefUnwindSafe for Matrix4x4
impl Send for Matrix4x4
impl Sync for Matrix4x4
impl Unpin for Matrix4x4
impl UnsafeUnpin for Matrix4x4
impl UnwindSafe for Matrix4x4
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