pub struct Transform {
pub a: f64,
pub b: f64,
pub c: f64,
pub d: f64,
pub e: f64,
pub f: f64,
}
Expand description
Constructs a new transform.
Constructs a new translate transform.
Constructs a new scale transform.
Constructs a new rotate transform.
Translates the current transform.
Scales the current transform.
Rotates the current transform.
Rotates the current transform at the specified position.
Appends transform to the current transform.
Prepends transform to the current transform.
Returns true
if the transform is default, aka (1 0 0 1 0 0)
.
Returns transform’s translate part.
Returns transform’s scale part.
Applies transform to selected coordinates.
Applies transform to selected coordinates.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Returns true
if values are approximately equal.
Returns true
if values are not approximately equal.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Converts Rect
into bbox Transform
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Checks that type has a default value.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.