[−][src]Trait shipyard_scenegraph::MatrixExt
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
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
) -> Matrix4
fn reset_from_trs_origin(
&mut self,
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
)
&mut self,
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
)
fn set_trs_origin(
&mut self,
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
)
&mut self,
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
)
fn invert_mut(&mut self) -> Result<(), MatrixError>
fn invert(&self) -> Result<Matrix4, MatrixError>
Implementors
impl MatrixExt for Matrix4
[src]
fn identity() -> Self
[src]
fn new_from_translation(translation: &Vec3) -> Self
[src]
fn reset_from_translation(&mut self, translation: &Vec3)
[src]
fn translate(&mut self, translation: &Vec3)
[src]
fn new_from_rotation(rotation: &Quat) -> Self
[src]
fn reset_from_rotation(&mut self, rotation: &Quat)
[src]
fn rotate(&mut self, rotation: &Quat)
[src]
fn new_from_scale(scale: &Vec3) -> Self
[src]
fn reset_from_scale(&mut self, scale: &Vec3)
[src]
fn scale(&mut self, scale: &Vec3)
[src]
fn new_from_trs(translation: &Vec3, rotation: &Quat, scale: &Vec3) -> Self
[src]
fn new_from_trs_origin(
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
) -> Self
[src]
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
) -> Self
fn reset_from_trs(&mut self, translation: &Vec3, rotation: &Quat, scale: &Vec3)
[src]
fn reset_from_trs_origin(
&mut self,
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
)
[src]
&mut self,
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
)
fn set_trs(&mut self, translation: &Vec3, rotation: &Quat, scale: &Vec3)
[src]
fn set_trs_origin(
&mut self,
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
)
[src]
&mut self,
translation: &Vec3,
rotation: &Quat,
scale: &Vec3,
origin: &Vec3
)
fn invert_mut(&mut self) -> Result<(), MatrixError>
[src]
returns true if it was able to invert, false otherwise