pub struct Sight { /* private fields */ }Implementations§
Source§impl Sight
impl Sight
Sourcepub fn new(range: f32, field_of_view: f32, mask: u32) -> Result<Sight, AiError>
pub fn new(range: f32, field_of_view: f32, mask: u32) -> Result<Sight, AiError>
Full field of view, radians in 0..=TAU. Distance/cone edges are inclusive.
pub fn test( &self, observer: Observer, target: Candidate, budget: &mut WorkBudget, query: &mut impl VisibilityQuery, ) -> Result<Detection, AiError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sight
impl RefUnwindSafe for Sight
impl Send for Sight
impl Sync for Sight
impl Unpin for Sight
impl UnwindSafe for Sight
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