pub struct TransformComponents {
pub translation: Vector2,
pub rotation: f64,
pub scale: Vector2,
pub shear: f64,
}Expand description
Canonical affine factors in scale, shear, rotation, translation application order.
Fields§
§translation: Vector2Position-independent displacement applied last.
rotation: f64Clockwise radians around the origin.
scale: Vector2Per-axis scale; decomposition places any reflection in the vertical factor.
shear: f64Horizontal shear coefficient: adds shear * vertical to the horizontal axis.
Unlike Transform::skew, this field is not an angle.
Implementations§
Trait Implementations§
Source§impl Clone for TransformComponents
impl Clone for TransformComponents
impl Copy for TransformComponents
Source§impl Debug for TransformComponents
impl Debug for TransformComponents
Source§impl PartialEq for TransformComponents
impl PartialEq for TransformComponents
impl StructuralPartialEq for TransformComponents
Auto Trait Implementations§
impl Forget for TransformComponents
impl Freeze for TransformComponents
impl Move for TransformComponents
impl RefUnwindSafe for TransformComponents
impl Send for TransformComponents
impl Sync for TransformComponents
impl Unpin for TransformComponents
impl UnsafeUnpin for TransformComponents
impl UnwindSafe for TransformComponents
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