[][src]Struct kit::M4

pub struct M4 {
    pub e: [[f32; 4]; 4],
}

Fields

e: [[f32; 4]; 4]

Implementations

impl M4[src]

pub const ZERO: M4[src]

pub const IDENTITY: M4[src]

pub fn mul(left: M4, right: M4) -> M4[src]

pub fn perspective(fov: f32, aspect: f32, near: f32, far: f32) -> M4[src]

pub fn ortho(
    left: f32,
    right: f32,
    bottom: f32,
    top: f32,
    near: f32,
    far: f32
) -> M4
[src]

pub const fn diag(diag: f32) -> M4[src]

pub fn eq(a: M4, b: M4) -> bool[src]

pub fn rotate_rad(angle_radians: f32, axis: V3) -> M4[src]

pub fn rotate(angle: f32, axis: V3) -> M4[src]

pub fn scale(scale: V3) -> M4[src]

pub fn look_at(eye: V3, center: V3, up: V3) -> M4[src]

pub fn pos(m: M4) -> V3[src]

pub fn translate(v: V3) -> M4[src]

pub fn mul_by_v4(m: M4, v: V4) -> V4[src]

Trait Implementations

impl Clone for M4[src]

impl Copy for M4[src]

impl Default for M4[src]

impl Mul<M4> for M4[src]

type Output = Self

The resulting type after applying the * operator.

Auto Trait Implementations

impl RefUnwindSafe for M4

impl Send for M4

impl Sync for M4

impl Unpin for M4

impl UnwindSafe for M4

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> SetParameter for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,