[][src]Struct linmath::Matrix3

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

Fields

x: Vector3<T>y: Vector3<T>z: Vector3<T>

Methods

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

pub fn new(x: Vector3<T>, y: Vector3<T>, z: Vector3<T>) -> Matrix3<T>[src]

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

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

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

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

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

pub fn translate(v: &Vector2<T>) -> Matrix3<T>[src]

pub fn rotate(rad: T) -> Matrix3<T>[src]

pub fn scale(v: &Vector2<T>) -> Matrix3<T>[src]

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

Trait Implementations

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

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

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

Performs copy-assignment from source. Read more

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

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

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

type Output = Matrix3<T>

The resulting type after applying the + operator.

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

type Output = Matrix3<T>

The resulting type after applying the - operator.

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

type Output = Matrix3<T>

The resulting type after applying the * operator.

impl<T: Float> Mul<Vector3<T>> for Matrix3<T>[src]

type Output = Vector3<T>

The resulting type after applying the * operator.

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

type Output = Matrix3<T>

The resulting type after applying the * operator.

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

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

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

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

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From 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 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]