Struct newport_math::mat4::Matrix4[][src]

pub struct Matrix4 {
    pub x_axis: Vector4,
    pub y_axis: Vector4,
    pub z_axis: Vector4,
    pub w_axis: Vector4,
}

Fields

x_axis: Vector4y_axis: Vector4z_axis: Vector4w_axis: Vector4

Implementations

impl Matrix4[src]

pub const ZERO: Self[src]

pub const IDENTITY: Self[src]

pub const fn from_cols(
    x_axis: Vector4,
    y_axis: Vector4,
    z_axis: Vector4,
    w_axis: Vector4
) -> Self
[src]

pub const fn from_rows(
    x_axis: Vector4,
    y_axis: Vector4,
    z_axis: Vector4,
    w_axis: Vector4
) -> Self
[src]

pub fn col(&self, index: usize) -> Vector4[src]

pub fn row(&self, index: usize) -> Vector4[src]

pub const fn ortho(width: f32, height: f32, far: f32, near: f32) -> Self[src]

pub fn translate(xyz: Vector3) -> Matrix4[src]

Trait Implementations

impl Clone for Matrix4[src]

impl Copy for Matrix4[src]

impl Debug for Matrix4[src]

impl Default for Matrix4[src]

impl Mul<Matrix4> for Matrix4[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Vector4> for Matrix4[src]

type Output = Vector4

The resulting type after applying the * operator.

impl MulAssign<Matrix4> for Matrix4[src]

impl PartialEq<Matrix4> for Matrix4[src]

impl PartialOrd<Matrix4> for Matrix4[src]

impl StructuralPartialEq for Matrix4[src]

Auto Trait Implementations

impl Send for Matrix4

impl Sync for Matrix4

impl Unpin for Matrix4

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.