[][src]Struct linmath::Matrix4

#[repr(C)]
pub struct Matrix4<T: Float> { pub x: Vector4<T>, pub y: Vector4<T>, pub z: Vector4<T>, pub w: Vector4<T>, }

Fields

x: Vector4<T>y: Vector4<T>z: Vector4<T>w: Vector4<T>

Methods

impl<T: Float> Matrix4<T>[src]

pub fn new(
    x: Vector4<T>,
    y: Vector4<T>,
    z: Vector4<T>,
    w: Vector4<T>
) -> Matrix4<T>
[src]

impl<T: Float> Matrix4<T>[src]

pub fn identity() -> Matrix4<T>[src]

pub fn transpose(m: &Matrix4<T>) -> Matrix4<T>[src]

pub fn determinant(m: &Matrix4<T>) -> T[src]

pub fn inverse(m: &Matrix4<T>) -> Option<Matrix4<T>>[src]

pub fn translate(v: &Vector3<T>) -> Matrix4<T>[src]

pub fn rotate(rad: T, v: &Vector3<T>) -> Matrix4<T>[src]

pub fn scale(v: &Vector3<T>) -> Matrix4<T>[src]

pub fn ortho(
    left: T,
    right: T,
    bottom: T,
    top: T,
    near: T,
    far: T
) -> Matrix4<T>
[src]

pub fn perspective(fovy: T, aspect: T, near: T, far: T) -> Matrix4<T>[src]

Trait Implementations

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

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

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

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

Performs copy-assignment from source. Read more

impl<T: Debug + Float> Debug for Matrix4<T>[src]

impl<T: Float> Sub<Matrix4<T>> for Matrix4<T>[src]

type Output = Matrix4<T>

The resulting type after applying the - operator.

impl<T: Float> Add<Matrix4<T>> for Matrix4<T>[src]

type Output = Matrix4<T>

The resulting type after applying the + operator.

impl<T: Float> Mul<Matrix4<T>> for Matrix4<T>[src]

type Output = Matrix4<T>

The resulting type after applying the * operator.

impl<T: Float> Mul<Vector4<T>> for Matrix4<T>[src]

type Output = Vector4<T>

The resulting type after applying the * operator.

impl<T: Float> Mul<T> for Matrix4<T>[src]

type Output = Matrix4<T>

The resulting type after applying the * operator.

impl<T: Float> AddAssign<Matrix4<T>> for Matrix4<T>[src]

impl<T: Float> SubAssign<Matrix4<T>> for Matrix4<T>[src]

impl<T: Float> MulAssign<Matrix4<T>> for Matrix4<T>[src]

impl<T: Float> MulAssign<T> for Matrix4<T>[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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> Borrow for T where
    T: ?Sized
[src]

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

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