18 #ifndef INCLUDED_HELPER_RASTERIZE 19 #define INCLUDED_HELPER_RASTERIZE 41 typedef std::vector<Span>
Spans;
54 #endif // INCLUDED_HELPER_RASTERIZE A simple fixed-point number class.
Definition: Fixed.h:115
i16 i1
Definition: Rasterize.h:37
Definition: Rasterize.h:28
i16 i0
Definition: Rasterize.h:36
i16 j
Definition: Rasterize.h:38
std::vector< Span > Spans
Definition: Rasterize.h:41
void RasterizeRectWithClearance(Spans &spans, const ICmpObstructionManager::ObstructionSquare &shape, entity_pos_t clearance, entity_pos_t cellSize)
Converts an ObstructionSquare shape (a rotated rectangle), expanded by the given clearance, into a list of spans of cells that are strictly inside the shape.
Definition: Rasterize.cpp:24
Represents the set of cells (i,j) where i0 <= i < i1.
Definition: Rasterize.h:34
int16_t i16
Definition: types.h:33
Standard representation for all types of shapes, for use with geometry processing code...
Definition: ICmpObstructionManager.h:224