simplemap_obst.cpp
Go to the documentation of this file.
1 #include "simplemap.h"
2 
3 namespace PPU {
4 
5  bool Map::isCellObst(const Viewport& cbb) const {
6  for (unsigned int i = 0; i < size(); i++) {
7  const Segment& s = at(i);
8  if(s.obstType != ObstSolid) continue;
9 
10  if(cbb.crossesSegment(s.p[0], s.p[1]))
11  return true;
12  }
13  return false;
14  }
15 
16 
17 }


csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23