Struct egui_gizmo::GizmoResult
source · pub struct GizmoResult {
pub scale: Vector3<f32>,
pub rotation: Quaternion<f32>,
pub translation: Vector3<f32>,
pub mode: GizmoMode,
pub value: Option<[f32; 3]>,
}
Expand description
Result of an active transformation
Fields§
§scale: Vector3<f32>
Updated scale
rotation: Quaternion<f32>
Updated rotation
translation: Vector3<f32>
Updated translation
mode: GizmoMode
Mode of the active subgizmo
value: Option<[f32; 3]>
Total scale, rotation or translation of the current gizmo activation, depending on mode
Implementations§
source§impl GizmoResult
impl GizmoResult
sourcepub fn transform(&self) -> ColumnMatrix4<f32>
pub fn transform(&self) -> ColumnMatrix4<f32>
Updated transformation matrix in column major order.
Trait Implementations§
source§impl Clone for GizmoResult
impl Clone for GizmoResult
source§fn clone(&self) -> GizmoResult
fn clone(&self) -> GizmoResult
Returns a copy 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