Struct specs_transform::Transform3D [−][src]
Fields
position: [T; 3]
scale: [T; 3]
rotation: [T; 4]
Methods
impl<T> Transform3D<T> where
T: Zero + One,
[src]
impl<T> Transform3D<T> where
T: Zero + One,
pub fn new(position: [T; 3], scale: [T; 3], rotation: [T; 4]) -> Self
[src]
pub fn new(position: [T; 3], scale: [T; 3], rotation: [T; 4]) -> Self
pub fn with_position(self, position: [T; 3]) -> Self
[src]
pub fn with_position(self, position: [T; 3]) -> Self
pub fn with_scale(self, scale: [T; 3]) -> Self
[src]
pub fn with_scale(self, scale: [T; 3]) -> Self
pub fn with_rotation(self, rotation: [T; 4]) -> Self
[src]
pub fn with_rotation(self, rotation: [T; 4]) -> Self
pub fn set_position(&mut self, position: [T; 3]) -> &mut Self
[src]
pub fn set_position(&mut self, position: [T; 3]) -> &mut Self
pub fn set_scale(&mut self, scale: [T; 3]) -> &mut Self
[src]
pub fn set_scale(&mut self, scale: [T; 3]) -> &mut Self
pub fn set_rotation(&mut self, rotation: [T; 4]) -> &mut Self
[src]
pub fn set_rotation(&mut self, rotation: [T; 4]) -> &mut Self
pub fn matrix(&self) -> [T; 16] where
T: Float,
&'a T: Mul<&'b T, Output = T> + Neg<Output = T> + Add<&'b T, Output = T> + Sub<&'b T, Output = T>,
[src]
pub fn matrix(&self) -> [T; 16] where
T: Float,
&'a T: Mul<&'b T, Output = T> + Neg<Output = T> + Add<&'b T, Output = T> + Sub<&'b T, Output = T>,
Trait Implementations
impl<T: Debug> Debug for Transform3D<T>
[src]
impl<T: Debug> Debug for Transform3D<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Component for Transform3D<T> where
T: 'static + Sync + Send,
[src]
impl<T> Component for Transform3D<T> where
T: 'static + Sync + Send,
type Storage = FlaggedStorage<Self, DenseVecStorage<Self>>
Associated storage type for this component.
impl<T> Default for Transform3D<T> where
T: Zero + One,
[src]
impl<T> Default for Transform3D<T> where
T: Zero + One,
Auto Trait Implementations
impl<T> Send for Transform3D<T> where
T: Send,
impl<T> Send for Transform3D<T> where
T: Send,
impl<T> Sync for Transform3D<T> where
T: Sync,
impl<T> Sync for Transform3D<T> where
T: Sync,