pub enum Reach {
Cone {
slope: Scalar,
},
Tube {
radius: Scalar,
},
}Expand description
How far from its ray a Pointer reaches: what counts as under it, at
any distance along the ray. Everything a viewer draws at a constant size
on screen — a handle, a label, a frame datum — is laid out in reaches,
so it is hit where it is drawn however far away or zoomed in the view is.
Variants§
Cone
Seen in perspective: a cone around the ray, from its origin — the
eye — widening by slope per unit of distance.
Tube
Seen orthographically: a tube of radius around the ray.
Implementations§
Trait Implementations§
impl Copy for Reach
Source§impl<'de> Deserialize<'de> for Reach
impl<'de> Deserialize<'de> for Reach
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Reach
Auto Trait Implementations§
impl Freeze for Reach
impl RefUnwindSafe for Reach
impl Send for Reach
impl Sync for Reach
impl Unpin for Reach
impl UnsafeUnpin for Reach
impl UnwindSafe for Reach
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