[][src]Struct ultraviolet::mat::Mat2

pub struct Mat2 {
    pub cols: [Vec2; 2],
}

A 2x2 square matrix.

Useful for performing linear transformations (rotation, scaling) on 2d vectors.

Fields

cols: [Vec2; 2]

Methods

impl Mat2[src]

pub fn new(col1: Vec2, col2: Vec2) -> Self[src]

Trait Implementations

impl From<Rotor2> for Mat2[src]

impl Clone for Mat2[src]

impl Copy for Mat2[src]

impl Debug for Mat2[src]

impl Mul<Mat2> for Mat2[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Vec2> for Mat2[src]

type Output = Vec2

The resulting type after applying the * operator.

Auto Trait Implementations

impl Send for Mat2

impl Sync for Mat2

impl Unpin for Mat2

impl UnwindSafe for Mat2

impl RefUnwindSafe for Mat2

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]