openPSTD
2.0
Open source simulation for sound propagation in urban environments
|
The points of the grid, represented by 2D integer vectors. More...
#include <Geometry.h>
Public Member Functions | |
Point (int x, int y, int z=0) | |
Constructor for a point in grid coordinates. More... | |
Public Attributes | |
int | x |
int | y |
int | z |
std::vector< int > | array |
Friends | |
Point | operator+ (Point a, Point b) |
Addition operator for points. | |
Point | operator- (Point a, Point b) |
Subtraction operator for points. More... | |
The points of the grid, represented by 2D integer vectors.
Origin (0,0) is top left.
OpenPSTD::Kernel::Point::Point | ( | int | x, |
int | y, | ||
int | z = 0 |
||
) |
Constructor for a point in grid coordinates.
Points only hold integer grid coordinates.
Subtraction operator for points.
Points with negative entries are well defined.