Struct pizarra::transform::Transform [−][src]
pub struct Transform {
pub xx: f64,
pub yx: f64,
pub xy: f64,
pub yy: f64,
pub x0: f64,
pub y0: f64,
}
Fields
xx: f64
yx: f64
xy: f64
yy: f64
x0: f64
y0: f64
Implementations
Returns a rotating transform that rotates the world angle
degrees
counterclockwise
Computes a transform to go back to 1.0 zoom with the drawing’s origin centered in the viewport.
Objects on the screen look factor
times bigger. Specified fixed point
is, well, fixed in the sense that before and after the zoom this point
maps to the same point of the world.
Objects on the screen rotate angle
. Rotation happens around the
specified fixed point
Objects on the screen move by this delta in screen units
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl UnwindSafe for Transform
Blanket Implementations
Mutably borrows from an owned value. Read more