pub struct Gizmo {
pub at: Vector3,
pub axes: Option<[Vector3; 3]>,
pub modes: Modes,
}Expand description
A gizmo an operation asks for (see super::Form::gizmo): at at,
doing what modes allow — oriented along the world’s axes, or axes,
what it stands on’s own, orthonormal and right-handed, if it has an
orientation of its own: then the user chooses which.
Fields§
§at: Vector3§axes: Option<[Vector3; 3]>§modes: ModesImplementations§
Source§impl Gizmo
impl Gizmo
Sourcepub fn new(at: Vector3) -> Self
pub fn new(at: Vector3) -> Self
A gizmo at at that does nothing yet: see Gizmo::translate,
Gizmo::rotate and Gizmo::scale.
pub fn translate(self) -> Self
pub fn rotate(self) -> Self
pub fn scale(self) -> Self
Trait Implementations§
impl StructuralPartialEq for Gizmo
Auto Trait Implementations§
impl Freeze for Gizmo
impl RefUnwindSafe for Gizmo
impl Send for Gizmo
impl Sync for Gizmo
impl Unpin for Gizmo
impl UnsafeUnpin for Gizmo
impl UnwindSafe for Gizmo
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