pub enum Transform {
Translate {
dx: f64,
dy: f64,
},
Rotate {
angle: f64,
},
Scale {
factor: f64,
},
MirrorX,
MirrorY,
}Expand description
A rigid or affine transformation applied to a Geometry’s vertices.
Mirrors sectionproperties.pre.geometry.Transform.
Variants§
Translate
Translate by an offset (dx, dy).
Rotate
Rotate counter-clockwise about the origin by angle radians.
Scale
Uniform scale about the origin.
MirrorX
Reflect about the x-axis (y → -y).
MirrorY
Reflect about the y-axis (x → -x).
Implementations§
Trait Implementations§
impl Copy for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Forget for Transform
impl Freeze for Transform
impl Move for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin for Transform
impl UnwindSafe for Transform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more