#include <geom.hh>
Public Member Functions | |
Grid (int width, int height) | |
Create a grid of certain size. | |
Grid (const std::vector< Line > &lines1, const std::vector< Line > &lines2) | |
Create a grid of the intersections between two series of lines. | |
Point & | operator() (int x, int y) |
Access a point. | |
Point & | operator[] (int index) |
Access the point buffer directly. | |
Public Attributes | |
int | width |
The width of the grid. | |
int | height |
The height of the grid. | |
std::vector< Point > | points |
The points in the grid: 1st row, 2nd row, and so on. |
|
Create a grid of certain size.
|
|
Create a grid of the intersections between two series of lines. This constructor takes two sets of lines, and for each line in the first set, it computes the intersections with each line from the second set. The intersections are stored so that n'th row contains the intersections of the n'th line of the first set.
|
|
Access a point.
|
|
Access the point buffer directly.
|