#[repr(C)]pub struct Matrix4x4 {}Fields§
§m11: f32§m12: f32§m13: f32§m14: f32§m21: f32§m22: f32§m23: f32§m24: f32§m31: f32§m32: f32§m33: f32§m34: f32§m41: f32§m42: f32§m43: f32§m44: f32Implementations§
Source§impl Matrix4x4
impl Matrix4x4
Sourcepub const fn translation(x: f32, y: f32, z: f32) -> Self
pub const fn translation(x: f32, y: f32, z: f32) -> Self
Returns a matrix that translates by (x, y, z).
Sourcepub fn rotation_y(degree: f32) -> Self
pub fn rotation_y(degree: f32) -> Self
Returns a matrix that rotates by degree degrees about the y-axis.
Sourcepub fn perspective_projection(depth: f32) -> Self
pub fn perspective_projection(depth: f32) -> Self
Returns a perspective projection matrix for the given depth. A
non-positive depth produces no perspective foreshortening.
Trait Implementations§
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 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