Struct usvg::Transform [−][src]
Expand description
Representation of the <transform>
type.
Fields
a: f64
b: f64
c: f64
d: f64
e: f64
f: f64
Implementations
Constructs a new transform.
Constructs a new translate transform.
Constructs a new rotate transform.
Constructs a new rotate transform at the specified position.
Constructs a new skew transform along then X axis.
Constructs a new skew transform along then Y axis.
Rotates the current transform at the specified position.
Returns true
if the transform is default, aka (1 0 0 1 0 0)
.
Returns true
if the transform contains only translate part, aka (1 0 0 1 x y)
.
Returns true
if the transform contains only scale part, aka (sx 0 0 sy 0 0)
.
Returns true
if the transform contains translate part.
Returns true
if the transform scale is proportional.
The proportional scale is when <sx>
equal to <sy>
.
Returns true
if the transform contains rotate part.
Returns transform’s rotate part.
Trait Implementations
Writes data to the Vec<u8>
buffer using specified WriteOptions
.
Writes data to the Vec<u8>
buffer using default WriteOptions
.
Returns an object that implements fmt::Display
using provided write options.
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl UnwindSafe for Transform
Blanket Implementations
Mutably borrows from an owned value. Read more
Checks that type has a default value.