#[repr(C)]pub struct Matrix44f {
pub data: [[f32; 4]; 4],
}Expand description
Row-major, matching the C++ MatrixMethods storage order.
Fields§
§data: [[f32; 4]; 4]Implementations§
Source§impl Matrix44f
impl Matrix44f
pub fn identity() -> Matrix44f
pub fn zero() -> Matrix44f
pub fn translation(t: Vector3f) -> Matrix44f
pub fn rotation(q: Quaternion) -> Matrix44f
pub fn scaling(s: Vector3f) -> Matrix44f
pub fn compose( translation: Vector3f, rotation: Quaternion, scale: Vector3f, ) -> Matrix44f
pub fn inverse(m: Matrix44f) -> Matrix44f
pub fn rotation_x(angle: f32) -> Matrix44f
pub fn rotation_y(angle: f32) -> Matrix44f
pub fn rotation_z(angle: f32) -> Matrix44f
pub fn look_at_rh(eye: Vector3f, target: Vector3f, up: Vector3f) -> Matrix44f
pub fn look_at_lh(eye: Vector3f, target: Vector3f, up: Vector3f) -> Matrix44f
pub fn look_at_lh_sgcompat( eye: Vector3f, target: Vector3f, up: Vector3f, ) -> Matrix44f
pub fn perspective_fov_rh( fov_y: f32, aspect: f32, near_z: f32, far_z: f32, ) -> Matrix44f
pub fn perspective_fov_lh( fov_y: f32, aspect: f32, near_z: f32, far_z: f32, ) -> Matrix44f
pub fn perspective_diag_sgcompat( fov_diagonal: f32, aspect: f32, near_z: f32, far_z: f32, ) -> Matrix44f
pub fn orthographic_rh( width: f32, height: f32, near_z: f32, far_z: f32, ) -> Matrix44f
pub fn transpose(self) -> Matrix44f
pub fn extract_translation(self) -> Vector3f
pub fn extract_rotation(self) -> Quaternion
pub fn extract_scale(self) -> Vector3f
Trait Implementations§
impl Copy for Matrix44f
impl StructuralPartialEq for Matrix44f
Auto Trait Implementations§
impl Freeze for Matrix44f
impl RefUnwindSafe for Matrix44f
impl Send for Matrix44f
impl Sync for Matrix44f
impl Unpin for Matrix44f
impl UnsafeUnpin for Matrix44f
impl UnwindSafe for Matrix44f
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