Generic N-dimensional vector 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 | |
TVector (Scalar value=(Scalar) 0) | |
Create a new vector with constant component vlaues. | |
TVector (Scalar x, Scalar y) | |
Create a new 2D vector (type error if Dimension != 2) | |
TVector (Scalar x, Scalar y, Scalar z) | |
Create a new 3D vector (type error if Dimension != 3) | |
TVector (Scalar x, Scalar y, Scalar z, Scalar w) | |
Create a new 4D vector (type error if Dimension != 4) | |
template<typename Derived > | |
TVector (const Eigen::MatrixBase< Derived > &p) | |
Construct a vector from MatrixBase (needed to play nice with Eigen) | |
template<typename Derived > | |
TVector & | operator= (const Eigen::MatrixBase< Derived > &p) |
Assign a vector from MatrixBase (needed to play nice with Eigen) | |
std::string | toString () const |
Return a human-readable string summary. | |
Generic N-dimensional vector data structure based on Eigen::Matrix.