Nori  24
TVector< _Scalar, _Dimension > Struct Template Reference

Generic N-dimensional vector data structure based on Eigen::Matrix. More...

#include <vector.h>

Inheritance diagram for TVector< _Scalar, _Dimension >:
Collaboration diagram for TVector< _Scalar, _Dimension >:

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 >
TVectoroperator= (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.
 

Detailed Description

template<typename _Scalar, int _Dimension>
struct TVector< _Scalar, _Dimension >

Generic N-dimensional vector data structure based on Eigen::Matrix.

Definition at line 37 of file vector.h.


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