Struct std140::mat4x4[][src]

pub struct mat4x4 { /* fields omitted */ }

A matrix with 4 columns and 4 rows, represented by 4 vec4 vectors.

Example

let value = std140::mat4x4(
    std140::vec4(0.0, 0.0, 0.0, 1.0),
    std140::vec4(0.0, 0.0, 0.0, 1.0),
    std140::vec4(0.0, 0.0, 0.0, 1.0),
    std140::vec4(0.0, 0.0, 0.0, 1.0),
);

Implementations

impl mat4x4[src]

pub fn zero() -> Self[src]

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

Trait Implementations

impl Clone for mat4x4[src]

impl Copy for mat4x4[src]

impl Deref for mat4x4[src]

type Target = array<vec4, 4>

The resulting type after dereferencing.

impl DerefMut for mat4x4[src]

impl PartialEq<mat4x4> for mat4x4[src]

impl ReprStd140 for mat4x4[src]

impl Std140ArrayElement for mat4x4[src]

impl StructuralPartialEq for mat4x4[src]

Auto Trait Implementations

impl RefUnwindSafe for mat4x4

impl Send for mat4x4

impl Sync for mat4x4

impl Unpin for mat4x4

impl UnwindSafe for mat4x4

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.