FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Affine

    struct · ferroui-designer-tools · v0.5.0

    struct Affine
    

    Row-vector affine transform: x'=xm11+ym21+dx, y'=xm12+ym22+dy.

    View source

    Members

    m11

    m11: f64
    

    Source

    m12

    m12: f64
    

    Source

    m21

    m21: f64
    

    Source

    m22

    m22: f64
    

    Source

    dx

    dx: f64
    

    Source

    dy

    dy: f64
    

    Source

    IDENTITY

    const IDENTITY: Self
    

    Source

    validate

    fn validate(self: Self) -> Result<()>
    

    Source

    transform

    fn transform(self: Self, point: Point) -> Result<Point>
    

    Source

    inverse

    fn inverse(self: Self) -> Result<Self>
    

    Source

    then

    fn then(self: Self, next: Self) -> Result<Self>
    

    Apply self, then next.

    Source

    rotation

    fn rotation(degrees: f64, pivot: Point) -> Result<Self>
    

    Source

    scale

    fn scale(x: f64, y: f64, pivot: Point) -> Result<Self>
    

    Source

    bounds

    fn bounds(self: Self, rect: Rect) -> Result<Rect>
    

    Source

    to_xaml

    fn to_xaml(self: Self) -> Result<String>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • DeserializeOwned
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Serialize
    • Deserialize<'de>
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.