pub enum Reach<S: Scalar> {
Cone {
slope: S,
},
Tube {
radius: S,
},
}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.
Fields
§
slope: STube
Seen orthographically: a tube of radius around the ray.
Fields
§
radius: SImplementations§
Trait Implementations§
impl<S: Copy + Scalar> Copy for Reach<S>
Source§impl<'de, S> Deserialize<'de> for Reach<S>where
S: Scalar,
impl<'de, S> Deserialize<'de> for Reach<S>where
S: Scalar,
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<S: PartialEq + Scalar> StructuralPartialEq for Reach<S>
Auto Trait Implementations§
impl<S> Freeze for Reach<S>where
S: Freeze,
impl<S> RefUnwindSafe for Reach<S>where
S: RefUnwindSafe,
impl<S> Send for Reach<S>
impl<S> Sync for Reach<S>
impl<S> Unpin for Reach<S>where
S: Unpin,
impl<S> UnsafeUnpin for Reach<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Reach<S>where
S: UnwindSafe,
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