pub struct LosObstacles {
pub rects: Vec<BlockingRect>,
pub circles: Vec<BlockingCircle>,
}Expand description
Outdoor LoS blockers derivable from AOI snapshot data.
Fields§
§rects: Vec<BlockingRect>§circles: Vec<BlockingCircle>Implementations§
Source§impl LosObstacles
impl LosObstacles
Sourcepub fn from_outdoor_views(
buildings: &[BuildingView],
resource_nodes: &[ResourceNodeView],
inside_building: Option<&str>,
) -> Self
pub fn from_outdoor_views( buildings: &[BuildingView], resource_nodes: &[ResourceNodeView], inside_building: Option<&str>, ) -> Self
Build outdoor obstacle set from streamed views (matches sim movement_blocking_rects +
outdoor blocking_obstacles for buildings + resource nodes).
Trait Implementations§
Source§impl Clone for LosObstacles
impl Clone for LosObstacles
Source§fn clone(&self) -> LosObstacles
fn clone(&self) -> LosObstacles
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 moreSource§impl Debug for LosObstacles
impl Debug for LosObstacles
Source§impl Default for LosObstacles
impl Default for LosObstacles
Source§fn default() -> LosObstacles
fn default() -> LosObstacles
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LosObstacles
impl RefUnwindSafe for LosObstacles
impl Send for LosObstacles
impl Sync for LosObstacles
impl Unpin for LosObstacles
impl UnsafeUnpin for LosObstacles
impl UnwindSafe for LosObstacles
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