[][src]Struct ico_math::Matrix4x4

#[repr(C)]
pub struct Matrix4x4 {
    pub m: [__m128; 4],
}

Fields

m: [__m128; 4]

Methods

impl Matrix4x4[src]

pub fn new(
    m00: f32,
    m01: f32,
    m02: f32,
    m03: f32,
    m10: f32,
    m11: f32,
    m12: f32,
    m13: f32,
    m20: f32,
    m21: f32,
    m22: f32,
    m23: f32,
    m30: f32,
    m31: f32,
    m32: f32,
    m33: f32
) -> Matrix4x4
[src]

pub fn zero() -> Matrix4x4[src]

pub fn identity() -> Matrix4x4[src]

pub fn from_columns(
    c0: Vector4,
    c1: Vector4,
    c2: Vector4,
    c3: Vector4
) -> Matrix4x4
[src]

pub fn from_rows(
    r0: Vector4,
    r1: Vector4,
    r2: Vector4,
    r3: Vector4
) -> Matrix4x4
[src]

pub fn transpose(&self) -> Matrix4x4[src]

pub fn add(a: Matrix4x4, b: Matrix4x4) -> Matrix4x4[src]

pub fn sub(a: Matrix4x4, b: Matrix4x4) -> Matrix4x4[src]

pub fn scale(mat: Matrix4x4, value: f32) -> Matrix4x4[src]

pub fn mul(a: Matrix4x4, b: Matrix4x4) -> Matrix4x4[src]

pub fn mul_vec(mat: Matrix4x4, v1: Vector4) -> Vector4[src]

pub fn transform_point(mat: Matrix4x4, v1: Vector3) -> Vector4[src]

pub fn transform_vector(mat: Matrix4x4, v1: Vector3) -> Vector4[src]

pub fn from_rotation(q: Quaternion) -> Matrix4x4[src]

From Essential Mathematics for games 2nd ed.

pub fn from_trs(
    translation: Vector3,
    rotation: Quaternion,
    uniform_scale: f32
) -> Matrix4x4
[src]

Trait Implementations

impl Clone for Matrix4x4[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Matrix4x4> for Matrix4x4[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Copy for Matrix4x4[src]

impl Mul<Matrix4x4> for Matrix4x4[src]

type Output = Matrix4x4

The resulting type after applying the * operator.

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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