Generic N-dimensional point data structure based on Eigen::Matrix. More...
#include <vector.h>


Public Types | |
| enum | { Dimension = _Dimension } |
| typedef _Scalar | Scalar |
| typedef Eigen::Matrix< Scalar, Dimension, 1 > | Base |
| typedef TVector< Scalar, Dimension > | VectorType |
| typedef TPoint< Scalar, Dimension > | PointType |
Public Member Functions | |
| TPoint (Scalar value=(Scalar) 0) | |
| Create a new point with constant component vlaues. | |
| TPoint (Scalar x, Scalar y) | |
Create a new 2D point (type error if Dimension != 2) | |
| TPoint (Scalar x, Scalar y, Scalar z) | |
Create a new 3D point (type error if Dimension != 3) | |
| TPoint (Scalar x, Scalar y, Scalar z, Scalar w) | |
Create a new 4D point (type error if Dimension != 4) | |
| template<typename Derived > | |
| TPoint (const Eigen::MatrixBase< Derived > &p) | |
| Construct a point from MatrixBase (needed to play nice with Eigen) | |
| template<typename Derived > | |
| TPoint & | operator= (const Eigen::MatrixBase< Derived > &p) |
| Assign a point from MatrixBase (needed to play nice with Eigen) | |
| std::string | toString () const |
| Return a human-readable string summary. | |
Generic N-dimensional point data structure based on Eigen::Matrix.