Struct oxygengine_prototype::resources::Transform2d
source · pub struct Transform2d {
pub position: Vec2,
pub rotation: Scalar,
pub scale: Vec2,
}
Fields§
§position: Vec2
§rotation: Scalar
§scale: Vec2
Implementations§
Trait Implementations§
source§impl Clone for Transform2d
impl Clone for Transform2d
source§fn clone(&self) -> Transform2d
fn clone(&self) -> Transform2d
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Transform2d
impl Debug for Transform2d
source§impl Default for Transform2d
impl Default for Transform2d
source§impl From<Transform2d> for HaTransform
impl From<Transform2d> for HaTransform
source§fn from(other: Transform2d) -> Self
fn from(other: Transform2d) -> Self
Converts to this type from the input type.
impl Copy for Transform2d
Auto Trait Implementations§
impl RefUnwindSafe for Transform2d
impl Send for Transform2d
impl Sync for Transform2d
impl Unpin for Transform2d
impl UnwindSafe for Transform2d
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more