pub enum Change {
Translate(Vector3),
Rotate {
axis: Vector3,
degrees: f64,
},
Scale {
axes: [Vector3; 3],
factors: [f64; 3],
},
}Expand description
What a drag of a gizmo did, from where it started.
Variants§
Translate(Vector3)
Moved by this much, in world coordinates.
Rotate
Turned by degrees about the line through the centre along the
unit vector axis — counter-clockwise, looking against it.
Scale
Scaled about the centre by factors[i] along the unit vector
axes[i].
Trait Implementations§
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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