Struct storm::math::TransformParameters[][src]

pub struct TransformParameters {
    pub translation: Vector2<f32>,
    pub scale: f32,
    pub rotation: f32,
}

Fields

translation: Vector2<f32>

The translation of the layer.

scale: f32

The zoom level of the layer. This is 1.0 by default, meaning 1 pixel takes up 1x1 pixels on screen.

rotation: f32

Rotation is measured in turns from [0, 1). Values outside of the range are wrapped into the range. For example, 1.75 is wrapped into 0.75, -0.4 is wrapped into 0.6.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.