pub enum ObsRegion {
Fixed(RegionSpec),
AgentDisk {
radius: u32,
},
AgentRect {
half_extent: SmallVec<[u32; 4]>,
},
}Expand description
Observation region — how to select spatial cells for an entry.
Fixed regions are resolved at plan-compile time (like the existing
RegionSpec). AgentDisk and AgentRect are resolved at execute
time relative to each agent’s position (foveation).
Variants§
Fixed(RegionSpec)
Absolute region, compiled at plan-compile time.
AgentDisk
Disk centered on the agent, resolved at execute time.
AgentRect
Axis-aligned rectangle centered on the agent, resolved at execute time.
Trait Implementations§
Source§impl From<RegionSpec> for ObsRegion
impl From<RegionSpec> for ObsRegion
Source§fn from(spec: RegionSpec) -> Self
fn from(spec: RegionSpec) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ObsRegion
Auto Trait Implementations§
impl Freeze for ObsRegion
impl RefUnwindSafe for ObsRegion
impl Send for ObsRegion
impl Sync for ObsRegion
impl Unpin for ObsRegion
impl UnwindSafe for ObsRegion
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