#include <Location3D.h>
Inherits srAlmende::Location.
Public Member Functions | |
| Location3D (int x, int y, int z) | |
| std::string | toString () |
It is assumed that there is only Location3D object per physical location. This can not be enforced, but it is an underlying reason that there are no setters for the x, y and z coordinates. There is no neighbour function defined for locations. It depends on the structure of Space3D which Location3D is actually close to which other Location3D. In other words, this class does not define a metric.
Definition at line 19 of file Location3D.h.
| srAlmende::Location3D::Location3D | ( | int | x, | |
| int | y, | |||
| int | z | |||
| ) |
A Location3D contains an x, y and z coordinate.
Definition at line 16 of file Location3D.cpp.
References toString().

| std::string srAlmende::Location3D::toString | ( | ) |
This routine can be used to print the coordinates in [x,y,z] format.
Definition at line 31 of file Location3D.cpp.
Referenced by srAlmende::Spatial3DGraph::addNode(), srAlmende::Space3DUnit::getNeighbours(), Location3D(), and srAlmende::Spatial3DGraph::removeNode().
1.6.1