[][src]Trait shipyard_scenegraph::MatrixExt

pub trait MatrixExt {
    fn identity() -> Self;
fn new_from_translation(translation: &Vec3) -> Matrix4;
fn reset_from_translation(&mut self, translation: &Vec3);
fn translate(&mut self, translation: &Vec3);
fn new_from_rotation(rotation: &Quat) -> Matrix4;
fn reset_from_rotation(&mut self, rotation: &Quat);
fn rotate(&mut self, rotation: &Quat);
fn new_from_scale(scale: &Vec3) -> Matrix4;
fn reset_from_scale(&mut self, scale: &Vec3);
fn scale(&mut self, scale: &Vec3);
fn new_from_trs(
        translation: &Vec3,
        rotation: &Quat,
        scale: &Vec3
    ) -> Matrix4;
fn reset_from_trs(
        &mut self,
        translation: &Vec3,
        rotation: &Quat,
        scale: &Vec3
    );
fn set_trs(&mut self, translation: &Vec3, rotation: &Quat, scale: &Vec3);
fn new_from_trs_origin(
        translation: &Vec3,
        rotation: &Quat,
        scale: &Vec3,
        origin: &Vec3
    ) -> Matrix4;
fn reset_from_trs_origin(
        &mut self,
        translation: &Vec3,
        rotation: &Quat,
        scale: &Vec3,
        origin: &Vec3
    );
fn set_trs_origin(
        &mut self,
        translation: &Vec3,
        rotation: &Quat,
        scale: &Vec3,
        origin: &Vec3
    );
fn invert_mut(&mut self) -> Result<(), MatrixError>;
fn invert(&self) -> Result<Matrix4, MatrixError>; }

Required methods

fn identity() -> Self

fn new_from_translation(translation: &Vec3) -> Matrix4

fn reset_from_translation(&mut self, translation: &Vec3)

fn translate(&mut self, translation: &Vec3)

fn new_from_rotation(rotation: &Quat) -> Matrix4

fn reset_from_rotation(&mut self, rotation: &Quat)

fn rotate(&mut self, rotation: &Quat)

fn new_from_scale(scale: &Vec3) -> Matrix4

fn reset_from_scale(&mut self, scale: &Vec3)

fn scale(&mut self, scale: &Vec3)

fn new_from_trs(translation: &Vec3, rotation: &Quat, scale: &Vec3) -> Matrix4

fn reset_from_trs(&mut self, translation: &Vec3, rotation: &Quat, scale: &Vec3)

fn set_trs(&mut self, translation: &Vec3, rotation: &Quat, scale: &Vec3)

fn new_from_trs_origin(
    translation: &Vec3,
    rotation: &Quat,
    scale: &Vec3,
    origin: &Vec3
) -> Matrix4

fn reset_from_trs_origin(
    &mut self,
    translation: &Vec3,
    rotation: &Quat,
    scale: &Vec3,
    origin: &Vec3
)

fn set_trs_origin(
    &mut self,
    translation: &Vec3,
    rotation: &Quat,
    scale: &Vec3,
    origin: &Vec3
)

fn invert_mut(&mut self) -> Result<(), MatrixError>

fn invert(&self) -> Result<Matrix4, MatrixError>

Loading content...

Implementors

impl MatrixExt for Matrix4[src]

fn invert_mut(&mut self) -> Result<(), MatrixError>[src]

returns true if it was able to invert, false otherwise

Loading content...