pub struct Shaft {
pub axis: Axis4,
pub origin: Vec3,
pub direction: Vec3,
pub inner: f32,
pub outer: f32,
pub head: f32,
}Fields§
§axis: Axis4§origin: Vec3§direction: Vec3§inner: f32Drawn extent; neither the pick nor the drag is clipped to it.
outer: f32§head: f32Implementations§
Source§impl Shaft
impl Shaft
pub fn point(&self, along: f32) -> Vec3
pub fn head_start(&self) -> f32
Sourcepub fn ray_parameter(
&self,
ray_origin: Vec3,
ray_direction: Vec3,
) -> Option<f32>
pub fn ray_parameter( &self, ray_origin: Vec3, ray_direction: Vec3, ) -> Option<f32>
Closest approach of the ray to the shaft’s line (Ericson, Real-Time Collision Detection, 2005, §5.1.9); None within 0.6° of parallel.
pub fn drag_translation(&self, grab: f32, cursor: f32) -> Vec4
Trait Implementations§
impl Copy for Shaft
impl StructuralPartialEq for Shaft
Auto Trait Implementations§
impl Freeze for Shaft
impl RefUnwindSafe for Shaft
impl Send for Shaft
impl Sync for Shaft
impl Unpin for Shaft
impl UnsafeUnpin for Shaft
impl UnwindSafe for Shaft
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