pub struct PickResult {
pub structure_type: String,
pub structure_name: String,
pub element_index: usize,
pub world_position: Vec3,
pub depth: f32,
}Expand description
Result of a pick/selection operation.
Fields§
§structure_type: StringThe type of structure that was picked.
structure_name: StringThe name of the structure that was picked.
element_index: usizeThe index of the element that was picked (vertex, face, etc.).
world_position: Vec3The world position of the pick point.
depth: f32The depth of the pick point.
Implementations§
Trait Implementations§
Source§impl Clone for PickResult
impl Clone for PickResult
Source§fn clone(&self) -> PickResult
fn clone(&self) -> PickResult
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 moreAuto Trait Implementations§
impl Freeze for PickResult
impl RefUnwindSafe for PickResult
impl Send for PickResult
impl Sync for PickResult
impl Unpin for PickResult
impl UnsafeUnpin for PickResult
impl UnwindSafe for PickResult
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