pub enum GizmoResult {
Rotation {
axis: Vector3<f64>,
delta: f64,
total: f64,
is_view_axis: bool,
},
Translation {
delta: Vector3<f64>,
total: Vector3<f64>,
},
Scale {
total: Vector3<f64>,
},
Arcball {
delta: Quaternion<f64>,
total: Quaternion<f64>,
},
}
Expand description
Result of a gizmo transformation
Variants§
Rotation
Fields
Translation
Fields
Scale
Arcball
Fields
§
delta: Quaternion<f64>
The latest rotation delta
§
total: Quaternion<f64>
Total rotation of the gizmo interaction
Trait Implementations§
Source§impl Clone for GizmoResult
impl Clone for GizmoResult
Source§fn clone(&self) -> GizmoResult
fn clone(&self) -> GizmoResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GizmoResult
impl Debug for GizmoResult
impl Copy for GizmoResult
Auto Trait Implementations§
impl Freeze for GizmoResult
impl RefUnwindSafe for GizmoResult
impl Send for GizmoResult
impl Sync for GizmoResult
impl Unpin for GizmoResult
impl UnwindSafe for GizmoResult
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