Fields
m: [[f32; 4]; 4]
Implementations
sourceimpl Matrix4x4
impl Matrix4x4
pub const fn identity() -> Matrix4x4
sourcepub fn translation(translation: Vector3) -> Matrix4x4
pub fn translation(translation: Vector3) -> Matrix4x4
Construct a translation matrix
sourcepub fn rotation(rotation: Quaternion) -> Matrix4x4
pub fn rotation(rotation: Quaternion) -> Matrix4x4
Construct a rotation matrix
sourcepub fn projection_ortho(
left: f32,
right: f32,
top: f32,
bottom: f32,
near: f32,
far: f32
) -> Matrix4x4
pub fn projection_ortho(
left: f32,
right: f32,
top: f32,
bottom: f32,
near: f32,
far: f32
) -> Matrix4x4
Construct a new off-center orthographic projection matrix
sourcepub fn projection_ortho_aspect(
aspect_ratio: f32,
scale: f32,
near: f32,
far: f32
) -> Matrix4x4
pub fn projection_ortho_aspect(
aspect_ratio: f32,
scale: f32,
near: f32,
far: f32
) -> Matrix4x4
Construct a new orthographic projection matrix using the given aspect ratio, scale, and near/far plane clip distances
sourcepub fn projection_perspective(
aspect_ratio: f32,
field_of_view: f32,
near: f32,
far: f32
) -> Matrix4x4
pub fn projection_perspective(
aspect_ratio: f32,
field_of_view: f32,
near: f32,
far: f32
) -> Matrix4x4
Construct a new perspective projection matrix using the given aspect ratio, field of view, and near/far plane clip distances
sourcepub fn load_identity_simd()
pub fn load_identity_simd()
Load an identity matrix into the SIMD register
sourcepub fn store_simd(matrix: &mut Matrix4x4)
pub fn store_simd(matrix: &mut Matrix4x4)
Store the current value of the SIMD register to the given matrix
sourcepub fn mul_simd(matrix: &Matrix4x4)
pub fn mul_simd(matrix: &Matrix4x4)
Multiply the matrix in the SIMD register by the given matrix
sourcepub fn transform_vector_simd(data: &mut [Vector4])
pub fn transform_vector_simd(data: &mut [Vector4])
Transform an array of vectors using the SIMD matrix register
sourcepub fn transform_vertex_simd<T>(data: &mut [T], field: FieldOffset<T, Vector4>)
pub fn transform_vertex_simd<T>(data: &mut [T], field: FieldOffset<T, Vector4>)
Transform a field of an array of input vertex structs using the SIMD matrix register
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Matrix4x4
impl Send for Matrix4x4
impl Sync for Matrix4x4
impl Unpin for Matrix4x4
impl UnwindSafe for Matrix4x4
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more