struct LayerIndex {
actors: RTree<GeomWithData<[f64; 2], EnemyIdx>>,
obstacles: RTree<GeomWithData<Line<[f64; 2]>, usize>>,
segments: Vec<(Position2, Position2)>,
polygon_envelopes: RTree<GeomWithData<Rectangle<[f64; 2]>, usize>>,
polygons: Vec<PolygonBlocker>,
}Fields§
§actors: RTree<GeomWithData<[f64; 2], EnemyIdx>>§obstacles: RTree<GeomWithData<Line<[f64; 2]>, usize>>§segments: Vec<(Position2, Position2)>§polygon_envelopes: RTree<GeomWithData<Rectangle<[f64; 2]>, usize>>§polygons: Vec<PolygonBlocker>Implementations§
Source§impl LayerIndex
impl LayerIndex
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerIndex
impl RefUnwindSafe for LayerIndex
impl Send for LayerIndex
impl Sync for LayerIndex
impl Unpin for LayerIndex
impl UnsafeUnpin for LayerIndex
impl UnwindSafe for LayerIndex
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