#include <Polytope.h>
Public Member Functions | |
Polytope (vector< Point > points, int _id) | |
double | getMaxCoordinateOnDimension (const int dimension) const |
double | getMinCoordinateOnDimension (const int dimension) const |
Point | getCoordinate (const int i) const |
int | getNumberOfAngles () const |
int | getDimension () const |
int | getIdentification () const |
Private Attributes | |
vector< Point > | _points |
int | identification |
Definition at line 21 of file Polytope.h.
Polytope::Polytope | ( | vector< Point > | points, | |
int | _id | |||
) | [inline] |
Base constructor.
points | The cornerpoints of the polytope to be created | |
_id | The identification number of this polytope |
Definition at line 37 of file Polytope.h.
References _points, and identification.
double Polytope::getMaxCoordinateOnDimension | ( | const int | dimension | ) | const |
Gets the maximum coordinate of all points at a given dimension.
dimension | The given dimension |
Definition at line 13 of file Polytope.cpp.
References _points, and getCoordinate().
Referenced by Cubic_Bounding_Box_Container::Cubic_Bounding_Box_Container().
double Polytope::getMinCoordinateOnDimension | ( | const int | dimension | ) | const |
Gets the minimum coordinate of all points at a given dimension.
dimension | The given dimension. |
Definition at line 24 of file Polytope.cpp.
References _points, and getCoordinate().
Referenced by Cubic_Bounding_Box_Container::Cubic_Bounding_Box_Container().
Point Polytope::getCoordinate | ( | const int | i | ) | const |
Returns the i-th angle coordinates from this polytope.
i | The angle index |
Definition at line 39 of file Polytope.cpp.
References _points.
Referenced by getDimension(), getMaxCoordinateOnDimension(), and getMinCoordinateOnDimension().
int Polytope::getNumberOfAngles | ( | ) | const |
Get the number of angles this Polytope possesses. Note that this is simply equal to the number of points used to describe this polytope.
Definition at line 35 of file Polytope.cpp.
References _points.
int Polytope::getDimension | ( | ) | const |
Returns the dimension of this polytope.
Definition at line 43 of file Polytope.cpp.
References getCoordinate(), and Point::getDimension().
Referenced by Cubic_Bounding_Box_Container::Cubic_Bounding_Box_Container().
int Polytope::getIdentification | ( | ) | const |
Returns the identification number of this polytope.
Definition at line 47 of file Polytope.cpp.
References identification.
Referenced by Cubic_Bounding_Box_Container::Cubic_Bounding_Box_Container().
vector<Point> Polytope::_points [private] |
The points this polytope consists of.
Definition at line 24 of file Polytope.h.
Referenced by getCoordinate(), getMaxCoordinateOnDimension(), getMinCoordinateOnDimension(), getNumberOfAngles(), and Polytope().
int Polytope::identification [private] |
Identification number.
Definition at line 27 of file Polytope.h.
Referenced by getIdentification(), and Polytope().