[][src]Struct ultraviolet::mat::Wat4

pub struct Wat4 {
    pub cols: [Wec4; 4],
}

Fields

cols: [Wec4; 4]

Methods

impl Wat4[src]

pub fn new(col1: Wec4, col2: Wec4, col3: Wec4, col4: Wec4) -> Self[src]

pub fn identity() -> Self[src]

pub fn from_translation(trans: Wec3) -> Self[src]

pub fn from_euler_angles(roll: f32x4, pitch: f32x4, yaw: f32x4) -> Self[src]

Angles are applied in the order roll -> pitch -> yaw

  • Yaw is rotation inside the xz plane ("around the y axis")
  • Pitch is rotation inside the yz plane ("around the x axis")
  • Roll is rotation inside the xy plane ("around the z axis")

pub fn layout() -> Layout[src]

Trait Implementations

impl Clone for Wat4[src]

impl Copy for Wat4[src]

impl Debug for Wat4[src]

impl Mul<Wat4> for Wat4[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Wec4> for Wat4[src]

type Output = Wec4

The resulting type after applying the * operator.

Auto Trait Implementations

impl Send for Wat4

impl Sync for Wat4

impl Unpin for Wat4

impl UnwindSafe for Wat4

impl RefUnwindSafe for Wat4

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 = !

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]