pub struct Transform {
    pub a: f64,
    pub b: f64,
    pub c: f64,
    pub d: f64,
    pub e: f64,
    pub f: f64,
}
Expand description

Representation of the <transform> type.

Fields

a: f64b: f64c: f64d: f64e: f64f: f64

Implementations

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.

Trait Implementations

Returns a copy of the value. Read more

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

Converts to this type from the input type.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Checks that type has a default value.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.