pub(super) fn remove_buildings_colliding_with(&mut self, above: &Layer) {
    self.buildings.retain(|building| {
      !above.pillars.iter().any(|pillar| do_geometries_intersect(building, pillar))
    })
  }
/// Removes all buildings from this layer that collide with the pillars of another layer
Removes all buildings from this layer that collide with the pillars of another layer
Removes all buildings from this layer that collide with the pillars of another layer
pub(super) fn remove_buildings_colliding_with(&mut self, above: &Layer) {
    self.buildings.retain(|building| {
      !above.pillars.iter().any(|pillar| do_geometries_intersect(building, pillar))
    })
  }
pub ( super ) fn remove_buildings_colliding_with ( & mut self , above : & Layer ) { self . buildings . retain ( | building | { ! above . pillars . iter ( ) . any ( | pillar | do_geometries_intersect ( building , pillar ) ) } ) }
Removes all buildings from this layer that collide with the pillars of another layer
Removes all buildings from this layer that collide with the pillars of another layer
&mut self
above
&Layer
&mut self
above
&Layer