Pyrogenesis  trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions
SimRasterize Namespace Reference

Classes

struct  Span
 Represents the set of cells (i,j) where i0 <= i < i1. More...
 

Typedefs

typedef std::vector< SpanSpans
 

Functions

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. More...
 

Typedef Documentation

typedef std::vector<Span> SimRasterize::Spans

Function Documentation

void SimRasterize::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.