pub struct Matrix4x4(pub [f64; 16]);Tuple Fields§
§0: [f64; 16]Implementations§
Source§impl Matrix4x4
impl Matrix4x4
pub fn identity_matrix() -> Matrix4x4
pub fn translation_matrix(tx: f64, ty: f64, tz: f64) -> Matrix4x4
pub fn scaling_matrix(sx: f64, sy: f64, sz: f64) -> Matrix4x4
pub fn x_rotation_matrix(angle_in_radians: f64) -> Matrix4x4
pub fn y_rotation_matrix(angle_in_radians: f64) -> Matrix4x4
pub fn z_rotation_matrix(angle_in_radians: f64) -> Matrix4x4
pub fn multiply(self: Matrix4x4, b: Matrix4x4) -> Matrix4x4
pub fn translate(self, tx: f64, ty: f64, tz: f64) -> Matrix4x4
pub fn scale(self: Matrix4x4, sx: f64, sy: f64, sz: f64) -> Matrix4x4
pub fn rotate_x(self: Matrix4x4, angle_in_radians: f64) -> Matrix4x4
pub fn rotate_y(self: Matrix4x4, angle_in_radians: f64) -> Matrix4x4
pub fn rotate_z(self: Matrix4x4, angle_in_radians: f64) -> Matrix4x4
Trait Implementations§
Source§impl PartialOrd for Matrix4x4
impl PartialOrd for Matrix4x4
impl Copy 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 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