pub struct TransformGizmo {
pub center: Vec3,
pub scale: f32,
}Fields§
§center: Vec3§scale: f32Implementations§
Source§impl TransformGizmo
impl TransformGizmo
pub fn hypergimbal(&self) -> Hypergimbal
pub fn rings(&self) -> [Ring; 6]
pub fn shafts(&self) -> [Shaft; 4]
pub fn shaft(&self, axis: Axis4) -> Shaft
Sourcepub fn pick(
&self,
ray_origin: Vec3,
ray_direction: Vec3,
tolerance: f32,
) -> Option<Handle>
pub fn pick( &self, ray_origin: Vec3, ray_direction: Vec3, tolerance: f32, ) -> Option<Handle>
A shaft beats a ring wherever both are in range; the mesh draws shafts last.
pub fn append_line_mesh(&self, style: &GizmoStyle, out: &mut LineMesh<3>)
Trait Implementations§
Source§impl Clone for TransformGizmo
impl Clone for TransformGizmo
Source§fn clone(&self) -> TransformGizmo
fn clone(&self) -> TransformGizmo
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 TransformGizmo
impl Debug for TransformGizmo
Source§impl PartialEq for TransformGizmo
impl PartialEq for TransformGizmo
impl Copy for TransformGizmo
impl StructuralPartialEq for TransformGizmo
Auto Trait Implementations§
impl Freeze for TransformGizmo
impl RefUnwindSafe for TransformGizmo
impl Send for TransformGizmo
impl Sync for TransformGizmo
impl Unpin for TransformGizmo
impl UnsafeUnpin for TransformGizmo
impl UnwindSafe for TransformGizmo
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