pub struct EntityTransform { /* private fields */ }Expand description
2D spatial transform component in world coordinates.
Implementations§
Source§impl EntityTransform
impl EntityTransform
pub fn get_position(&self) -> Point
pub fn get_mut_position(&mut self) -> &mut Point
pub fn set_position(&mut self, val: Point) -> &mut Self
pub fn get_rotation_rad(&self) -> f32
pub fn get_mut_rotation_rad(&mut self) -> &mut f32
pub fn set_rotation_rad(&mut self, val: f32) -> &mut Self
pub fn get_scale(&self) -> Size
pub fn get_mut_scale(&mut self) -> &mut Size
pub fn set_scale(&mut self, val: Size) -> &mut Self
Trait Implementations§
Source§impl Clone for EntityTransform
impl Clone for EntityTransform
impl Copy for EntityTransform
Source§impl Debug for EntityTransform
impl Debug for EntityTransform
Source§impl Default for EntityTransform
Default identity transform at world origin.
impl Default for EntityTransform
Default identity transform at world origin.
Source§impl PartialEq for EntityTransform
impl PartialEq for EntityTransform
impl StructuralPartialEq for EntityTransform
Auto Trait Implementations§
impl Forget for EntityTransform
impl Freeze for EntityTransform
impl Move for EntityTransform
impl RefUnwindSafe for EntityTransform
impl Send for EntityTransform
impl Sync for EntityTransform
impl Unpin for EntityTransform
impl UnsafeUnpin for EntityTransform
impl UnwindSafe for EntityTransform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more