openPSTD  2.0
Open source simulation for sound propagation in urban environments
Public Member Functions | Public Attributes | Friends | List of all members
OpenPSTD::Kernel::Point Class Reference

The points of the grid, represented by 2D integer vectors. More...

#include <Geometry.h>

Collaboration diagram for OpenPSTD::Kernel::Point:
Collaboration graph

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

Detailed Description

The points of the grid, represented by 2D integer vectors.

Origin (0,0) is top left.

Constructor & Destructor Documentation

OpenPSTD::Kernel::Point::Point ( int  x,
int  y,
int  z = 0 
)

Constructor for a point in grid coordinates.

Points only hold integer grid coordinates.

Friends And Related Function Documentation

Point operator- ( Point  a,
Point  b 
)
friend

Subtraction operator for points.

Points with negative entries are well defined.


The documentation for this class was generated from the following files: