Skip to main content

AffineExt

Trait AffineExt 

Source
pub(crate) trait AffineExt {
    // Required methods
    fn has_skew(&self) -> bool;
    fn has_vertical_skew(&self) -> bool;
    fn is_positive_uniform_scale_without_skew(&self) -> bool;
    fn is_positive_uniform_scale_without_vertical_skew(&self) -> bool;
    fn has_non_unit_skew_or_scale(&self) -> bool;
}

Required Methods§

Source

fn has_skew(&self) -> bool

Whether the transform has any skewing coefficient.

Source

fn has_vertical_skew(&self) -> bool

Whether the transform has a vertical skew.

Source

fn is_positive_uniform_scale_without_skew(&self) -> bool

Whether the transform has positive, uniform scaling factors and no skew.

Source

fn is_positive_uniform_scale_without_vertical_skew(&self) -> bool

Whether the transform has positive, uniform scaling factors and no vertical skew.

Source

fn has_non_unit_skew_or_scale(&self) -> bool

Whether the transform has non-unit scale or skew.

Note that negative scales (i.e. -1.0) are explicitly allowed.

Implementations on Foreign Types§

Source§

impl AffineExt for Affine

Implementors§