Struct pax_runtime_api::math::Parts
source · pub struct Parts {
pub origin: Vector2,
pub scale: Vector2,
pub skew: Vector2,
pub rotation: f64,
}
Fields§
§origin: Vector2
§scale: Vector2
§skew: Vector2
§rotation: f64
Trait Implementations§
source§impl<F: Space, T: Space> Into<Parts> for Transform2<F, T>
impl<F: Space, T: Space> Into<Parts> for Transform2<F, T>
NOTE: the returned parts.skew.y will always be equal to 0,
source§impl<F: Space, W: Space> Into<Transform2<F, W>> for Parts
impl<F: Space, W: Space> Into<Transform2<F, W>> for Parts
source§fn into(self) -> Transform2<F, W>
fn into(self) -> Transform2<F, W>
Converts this type into the (usually inferred) input type.
impl StructuralPartialEq for Parts
Auto Trait Implementations§
impl Freeze for Parts
impl RefUnwindSafe for Parts
impl Send for Parts
impl Sync for Parts
impl Unpin for Parts
impl UnwindSafe for Parts
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.