[][src]Struct std140::mat2x3

pub struct mat2x3 { /* fields omitted */ }

A matrix with 2 columns and 3 rows, represented by 2 vec3 vectors.

Example

let value = std140::mat2x3(
    std140::vec3(0.0, 0.0, 1.0),
    std140::vec3(0.0, 0.0, 1.0),
);

Methods

impl mat2x3[src]

pub fn zero() -> Self[src]

Creates a new [mat2x3] with zeros in all positions.

Trait Implementations

impl Clone for mat2x3[src]

impl Copy for mat2x3[src]

impl Deref for mat2x3[src]

type Target = array<vec3, 2>

The resulting type after dereferencing.

impl DerefMut for mat2x3[src]

impl PartialEq<mat2x3> for mat2x3[src]

impl ReprStd140 for mat2x3[src]

impl Std140ArrayElement for mat2x3[src]

impl StructuralPartialEq for mat2x3[src]

Auto Trait Implementations

impl RefUnwindSafe for mat2x3

impl Send for mat2x3

impl Sync for mat2x3

impl Unpin for mat2x3

impl UnwindSafe for mat2x3

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> ReprStd140 for T where
    T: Std140Struct
[src]

impl<T> Std140ArrayElement for T where
    T: Std140Struct
[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.