Affine
struct · ferroui-designer-tools · v0.5.0
struct Affine
Row-vector affine transform: x'=xm11+ym21+dx, y'=xm12+ym22+dy.
Members
m11
m11: f64
m12
m12: f64
m21
m21: f64
m22
m22: f64
dx
dx: f64
dy
dy: f64
IDENTITY
const IDENTITY: Self
validate
fn validate(self: Self) -> Result<()>
transform
fn transform(self: Self, point: Point) -> Result<Point>
inverse
fn inverse(self: Self) -> Result<Self>
then
fn then(self: Self, next: Self) -> Result<Self>
Apply self, then next.
rotation
fn rotation(degrees: f64, pivot: Point) -> Result<Self>
scale
fn scale(x: f64, y: f64, pivot: Point) -> Result<Self>
bounds
fn bounds(self: Self, rect: Rect) -> Result<Rect>
to_xaml
fn to_xaml(self: Self) -> Result<String>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneCopyDebugStructuralPartialEqPartialEqSerializeDeserialize<'de>Default
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.