Trait radiant_utils::Matrix[][src]

pub trait Matrix<T> where
    T: Copy
{ fn set<M>(&mut self, other: M) -> &mut Self
    where
        [[T; 4]; 4]: From<M>
;
fn translate<V>(&mut self, translation_vector: V) -> &mut Self
    where
        V: Vector<T>
;
fn scale<V>(&mut self, scaling_vector: V) -> &mut Self
    where
        V: Vector<T>
;
fn scale_at<P, V>(&mut self, position: P, scaling_vector: V) -> &mut Self
    where
        P: Vector<T>,
        V: Vector<T>
;
fn rotate(&mut self, radians: T) -> &mut Self;
fn rotate_at<P>(&mut self, position: P, radians: T) -> &mut Self
    where
        P: Vector<T>
;
fn rotate_axis<V>(&mut self, radians: T, axis: V) -> &mut Self
    where
        Vec3<T>: From<V>
;
fn rotate_axis_at<P, V>(
        &mut self,
        position: P,
        radians: T,
        axis: V
    ) -> &mut Self
    where
        P: Vector<T>,
        Vec3<T>: From<V>
;
fn get_rotation(&self) -> Self;
fn get_translation(&self) -> Vec3<T>;
fn get_scale(&self) -> Vec3<T>;
fn get_euler(&self) -> Vec3<T>; }

Matrix-methods for 4x4 arrays.

Required Methods

Important traits for &'a mut R

Sets the matrix value from another matrix.

Important traits for &'a mut R

Translate matrix by given vector.

Important traits for &'a mut R

Scale matrix by given vector.

Important traits for &'a mut R

Scales at given position.

Important traits for &'a mut R

Rotates the origin around z.

Important traits for &'a mut R

Rotates around z at given position.

Important traits for &'a mut R

Rotates around axis.

Important traits for &'a mut R

Rotates around axis at given position.

Returns a pure rotation matrix for given matrix

Returns the matrix's translation vector.

Returns the matrix's scaling vector.

Get rotation matrix euler angles.

Implementations on Foreign Types

impl<T> Matrix<T> for [[T; 4]; 4] where
    T: Float
[src]

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for &'a mut R

Implementors