Type Alias FastLayoutTransform

Source
pub type FastLayoutTransform = FastTransform<LayoutPixel, LayoutPixel>;

Aliased Type§

pub enum FastLayoutTransform {
    Offset(Vector2D<f32, LayoutPixel>),
    Transform {
        transform: Transform3D<f32, LayoutPixel, LayoutPixel>,
        inverse: Option<Transform3D<f32, LayoutPixel, LayoutPixel>>,
        is_2d: bool,
    },
}

Variants§

§

Offset(Vector2D<f32, LayoutPixel>)

A simple offset, which can be used without doing any matrix math.

§

Transform

A 2D transformation with an inverse.