Struct specs_transform::Transform2D [−][src]
Fields
position: [T; 2]
scale: [T; 2]
rotation: T
Methods
impl<T> Transform2D<T> where
T: Zero + One,
[src]
impl<T> Transform2D<T> where
T: Zero + One,
pub fn new(position: [T; 2], scale: [T; 2], rotation: T) -> Self
[src]
pub fn new(position: [T; 2], scale: [T; 2], rotation: T) -> Self
pub fn with_position(self, position: [T; 2]) -> Self
[src]
pub fn with_position(self, position: [T; 2]) -> Self
pub fn with_scale(self, scale: [T; 2]) -> Self
[src]
pub fn with_scale(self, scale: [T; 2]) -> Self
pub fn with_rotation(self, rotation: T) -> Self
[src]
pub fn with_rotation(self, rotation: T) -> Self
pub fn set_position(&mut self, position: [T; 2]) -> &mut Self
[src]
pub fn set_position(&mut self, position: [T; 2]) -> &mut Self
pub fn set_scale(&mut self, scale: [T; 2]) -> &mut Self
[src]
pub fn set_scale(&mut self, scale: [T; 2]) -> &mut Self
pub fn set_rotation(&mut self, rotation: T) -> &mut Self
[src]
pub fn set_rotation(&mut self, rotation: T) -> &mut Self
pub fn matrix(&self) -> [T; 6] 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; 6] 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 Transform2D<T>
[src]
impl<T: Debug> Debug for Transform2D<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 Transform2D<T> where
T: 'static + Sync + Send,
[src]
impl<T> Component for Transform2D<T> where
T: 'static + Sync + Send,
type Storage = FlaggedStorage<Self, DenseVecStorage<Self>>
Associated storage type for this component.
impl<T> Default for Transform2D<T> where
T: Zero + One,
[src]
impl<T> Default for Transform2D<T> where
T: Zero + One,
Auto Trait Implementations
impl<T> Send for Transform2D<T> where
T: Send,
impl<T> Send for Transform2D<T> where
T: Send,
impl<T> Sync for Transform2D<T> where
T: Sync,
impl<T> Sync for Transform2D<T> where
T: Sync,