[][src]Struct mini_math::Matrix

pub struct Matrix(pub [[f32; 4]; 4]);

Methods

impl Matrix[src]

pub fn identity() -> Self[src]

pub fn zero() -> Self[src]

pub fn look_at(target: Point, direction: Vector, up: Vector) -> Self[src]

pub fn perspective(aspect_ratio: f32, fov: f32, znear: f32, zfar: f32) -> Self[src]

pub fn translation(v: Vector) -> Self[src]

pub fn rotation_x(angle: f32) -> Self[src]

pub fn rotation_y(angle: f32) -> Self[src]

pub fn rotation_z(angle: f32) -> Self[src]

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

pub fn invert(&self) -> Self[src]

Trait Implementations

impl Clone for Matrix[src]

impl Copy for Matrix[src]

impl PartialEq<Matrix> for Matrix[src]

impl Debug for Matrix[src]

impl Mul<Matrix> for Matrix[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Point> for Matrix[src]

type Output = Point

The resulting type after applying the * operator.

impl Mul<Vector> for Matrix[src]

type Output = Vector

The resulting type after applying the * operator.

impl StructuralPartialEq for Matrix[src]

Auto Trait Implementations

impl Send for Matrix

impl Sync for Matrix

impl Unpin for Matrix

impl UnwindSafe for Matrix

impl RefUnwindSafe for Matrix

Blanket Implementations

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

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

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

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

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