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.