pub struct Pointer {
pub ray: Ray,
pub reach: Reach,
pub cycle: usize,
}Expand description
Where the pointer is: the ray from the eye through it, how far from that ray it reaches, and which of what lies under it it means.
Fields§
§ray: Ray§reach: Reach§cycle: usizeWhich of what lies under the pointer it means, counted front to
back from the one a click picks first (see
super::hit::Scene::under), wrapping round: a secondary click
steps one further behind, and any move of the pointer starts again
from the front. A pick, a hover and a click alike take the one
this names, so what is lit is what a click holds.
Implementations§
Source§impl Pointer
impl Pointer
Sourcepub fn moved(&self, motion: &Motion) -> GeopResult<Self>
pub fn moved(&self, motion: &Motion) -> GeopResult<Self>
The pointer moved by motion: into the frame of a part placed in
the part drawn, for a step of it to be edited where it is placed. A
rigid motion leaves its reach as it is.
Sourcepub fn cycled(self, cycle: usize) -> Self
pub fn cycled(self, cycle: usize) -> Self
The same pointer, meaning the cycle-th of what lies under it (see
Pointer::cycle).
Trait Implementations§
impl Copy for Pointer
Source§impl<'de> Deserialize<'de> for Pointer
impl<'de> Deserialize<'de> for Pointer
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 Pointer
Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnsafeUnpin for Pointer
impl UnwindSafe for Pointer
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