[][src]Struct linmath::Matrix2

#[repr(C)]
pub struct Matrix2<T: Float> { pub x: Vector2<T>, pub y: Vector2<T>, }

Fields

x: Vector2<T>y: Vector2<T>

Methods

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

pub fn new(x: Vector2<T>, y: Vector2<T>) -> Matrix2<T>[src]

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

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

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

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

pub fn adjugate(m: &Matrix2<T>) -> Matrix2<T>[src]

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

Trait Implementations

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

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

impl<T: Clone + Float> Clone for Matrix2<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 Matrix2<T>[src]

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

type Output = Matrix2<T>

The resulting type after applying the - operator.

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

type Output = Matrix2<T>

The resulting type after applying the + operator.

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

type Output = Matrix2<T>

The resulting type after applying the * operator.

impl<T: Float> Mul<Vector2<T>> for Matrix2<T>[src]

type Output = Vector2<T>

The resulting type after applying the * operator.

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

type Output = Matrix2<T>

The resulting type after applying the * operator.

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

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

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

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

Auto Trait Implementations

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

impl<T> Sync for Matrix2<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]