Expand description
Representation of the <transform> type.
Fields
a: f64b: f64c: f64d: f64e: f64f: f64Implementations
sourceimpl Transform
impl Transform
sourcepub fn new_translate(x: f64, y: f64) -> Self
pub fn new_translate(x: f64, y: f64) -> Self
Constructs a new translate transform.
sourcepub fn new_rotate(angle: f64) -> Self
pub fn new_rotate(angle: f64) -> Self
Constructs a new rotate transform.
sourcepub fn rotate_at(&mut self, angle: f64, x: f64, y: f64)
pub fn rotate_at(&mut self, angle: f64, x: f64, y: f64)
Rotates the current transform at the specified position.
sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true if the transform is default, aka (1 0 0 1 0 0).
sourcepub fn get_translate(&self) -> (f64, f64)
pub fn get_translate(&self) -> (f64, f64)
Returns transform’s translate part.
Trait Implementations
sourceimpl PartialEq<Transform> for Transform
impl PartialEq<Transform> for Transform
sourceimpl TransformFromBBox for Transform
impl TransformFromBBox for Transform
impl Copy for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.