Struct indigo::math::Matrix4[][src]

#[repr(transparent)]pub struct Matrix4<T> {
    pub columns: [Vector4<T>; 4],
}

A 4x4 matrix of T.

Fields

columns: [Vector4<T>; 4]

Implementations

impl<T: Number + Copy> Matrix4<T>[src]

pub fn new(
    column0: Vector4<T>,
    column1: Vector4<T>,
    column2: Vector4<T>,
    column3: Vector4<T>
) -> Self
[src]

Creates a new matrix from a set of column vectors.

pub fn scale(scale: Vector3<T>) -> Self[src]

Creates a new matrix from a three-dimensional scaling factor.

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

Returns a Vector4 containing the components in a row.

pub fn rows(&self) -> [Vector4<T>; 4][src]

Returns an array of Vector4 containing the components of each row.

impl Matrix4<f32>[src]

pub fn orthographic_projection(size: Vector2<f32>) -> Self[src]

Creates a new orthographic projection matrix of the given two-dimensional size.

Trait Implementations

impl<T: Clone> Clone for Matrix4<T>[src]

impl<T: Copy> Copy for Matrix4<T>[src]

impl<T: Number + Copy> Default for Matrix4<T>[src]

impl<T: Eq> Eq for Matrix4<T>[src]

impl<T: Number + Copy> Mul<Matrix4<T>> for Matrix4<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Number + Copy> MulAssign<Matrix4<T>> for Matrix4<T>[src]

impl<T: Number + Copy> One for Matrix4<T>[src]

impl<T: PartialEq> PartialEq<Matrix4<T>> for Matrix4<T>[src]

impl<T> StructuralEq for Matrix4<T>[src]

impl<T> StructuralPartialEq for Matrix4<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Matrix4<T> where
    T: RefUnwindSafe

impl<T> Send for Matrix4<T> where
    T: Send

impl<T> Sync for Matrix4<T> where
    T: Sync

impl<T> Unpin for Matrix4<T> where
    T: Unpin

impl<T> UnwindSafe for Matrix4<T> where
    T: UnwindSafe

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,