pub struct ViewerQuery {
pub client_id: ClientId,
pub position: Position3,
pub radius: f32,
pub max_entities: usize,
}Expand description
Viewer-side interest query.
Fields§
§client_id: ClientIdClient requesting visible or interesting entities.
position: Position3Viewer position.
radius: f32Primary spherical interest radius.
max_entities: usizeOptional maximum number of selected entities.
Implementations§
Source§impl ViewerQuery
impl ViewerQuery
Sourcepub fn radius_squared(self) -> f32
pub fn radius_squared(self) -> f32
Returns squared interest radius.
Trait Implementations§
Source§impl Clone for ViewerQuery
impl Clone for ViewerQuery
Source§fn clone(&self) -> ViewerQuery
fn clone(&self) -> ViewerQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ViewerQuery
Source§impl Debug for ViewerQuery
impl Debug for ViewerQuery
Source§impl PartialEq for ViewerQuery
impl PartialEq for ViewerQuery
impl StructuralPartialEq for ViewerQuery
Auto Trait Implementations§
impl Freeze for ViewerQuery
impl RefUnwindSafe for ViewerQuery
impl Send for ViewerQuery
impl Sync for ViewerQuery
impl Unpin for ViewerQuery
impl UnsafeUnpin for ViewerQuery
impl UnwindSafe for ViewerQuery
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