[][src]Struct shader_types::Mat2x2

#[repr(C, align(8))]pub struct Mat2x2 {
    pub inner: [Vec2; 2],
    // some fields omitted
}

Matrix of f32 values with 2 rows and 2 columns. Has size 16 and alignment 8.

Fields

inner: [Vec2; 2]

Implementations

impl Mat2x2[src]

pub fn new(inner: [Vec2; 2]) -> Self[src]

pub fn from_mint<T: Into<ColumnMatrix2<f32>>>(value: T) -> Self[src]

This is supported on crate feature mint only.

Construct a Mat2x2 from any type which is convertable into a mint::ColumnMatrix2<f32>.

Trait Implementations

impl Clone for Mat2x2[src]

impl Copy for Mat2x2[src]

impl Debug for Mat2x2[src]

impl Default for Mat2x2[src]

impl From<[[f32; 2]; 2]> for Mat2x2[src]

impl From<[Vec2; 2]> for Mat2x2[src]

impl From<[f32; 4]> for Mat2x2[src]

impl From<ColumnMatrix2<f32>> for Mat2x2[src]

impl From<Mat2x2> for ColumnMatrix2<f32>[src]

impl From<Mat2x2> for [Vec2; 2][src]

impl From<Mat2x2> for [f32; 4][src]

impl From<Mat2x2> for [[f32; 2]; 2][src]

impl PartialEq<Mat2x2> for Mat2x2[src]

impl PartialOrd<Mat2x2> for Mat2x2[src]

impl Pod for Mat2x2[src]

impl StructuralPartialEq for Mat2x2[src]

impl Zeroable for Mat2x2[src]

Auto Trait Implementations

impl RefUnwindSafe for Mat2x2

impl Send for Mat2x2

impl Sync for Mat2x2

impl Unpin for Mat2x2

impl UnwindSafe for Mat2x2

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.