eigen_matrix_addons.h File Reference

Go to the source code of this file.

Typedefs

typedef ei_to_vcgtype< Matrix >
::type 
EquivVcgType
typedef vcg::VoidType ParamType
typedef Matrix PointType

Enumerations

enum  { Dimension = SizeAtCompileTime }

Functions

template<typename OtherDerived >
static Matrix Construct (const MatrixBase< OtherDerived > &b)
 constructor for points with different scalar type and-or dimensionality
template<typename OtherDerived >
static Matrix ConstructHomo (const MatrixBase< OtherDerived > &b)
 constructor for homogeneus point.
void FromPolar (const Scalar &ro, const Scalar &theta, const Scalar &phi)
ParamType GlobalToLocal (PointType) const
template<typename OtherDerived >
void Import (const MatrixBase< OtherDerived > &b)
 importer for points with different scalar type and-or dimensionality
template<typename OtherDerived >
void ImportHomo (const MatrixBase< OtherDerived > &b)
 importer for homogeneous points
Matrix LocalToGlobal (ParamType p) const
 operator const EquivVcgType & () const
 operator EquivVcgType & ()
void ToPolar (Scalar &ro, Scalar &theta, Scalar &phi) const
EIGEN_DEPRECATED const Scalar & V (const int i) const
EIGEN_DEPRECATED Scalar * V ()
Scalar & W ()
const Scalar & X () const
const Scalar & Y () const
const Scalar & Z () const

Typedef Documentation

typedef ei_to_vcgtype<Matrix>::type EquivVcgType

Definition at line 29 of file eigen_matrix_addons.h.

Definition at line 30 of file eigen_matrix_addons.h.

typedef Matrix PointType

Definition at line 31 of file eigen_matrix_addons.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
Dimension 

Definition at line 28 of file eigen_matrix_addons.h.


Function Documentation

template<typename OtherDerived >
static Matrix Construct ( const MatrixBase< OtherDerived > &  b  )  [inline, static]

constructor for points with different scalar type and-or dimensionality

Definition at line 51 of file eigen_matrix_addons.h.

template<typename OtherDerived >
static Matrix ConstructHomo ( const MatrixBase< OtherDerived > &  b  )  [inline, static]

constructor for homogeneus point.

Definition at line 68 of file eigen_matrix_addons.h.

void FromPolar ( const Scalar &  ro,
const Scalar &  theta,
const Scalar &  phi 
)

Convert from polar coordinates to cartesian coordinates.

Theta is the azimuth angle and ranges between [0, 360) degrees. Phi is the elevation angle (not the polar angle) and ranges between [-90, 90] degrees.

Note:
Note that instead of the classical polar angle, which ranges between 0 and 180 degrees, we opt for the elevation angle to obtain a more intuitive spherical coordinate system.

Definition at line 135 of file eigen_matrix_addons.h.

ParamType GlobalToLocal ( PointType   )  const [inline]

Glocal to Local (provided for uniformity with other spatial classes. trivial for points)

Definition at line 105 of file eigen_matrix_addons.h.

template<typename OtherDerived >
void Import ( const MatrixBase< OtherDerived > &  b  )  [inline]

importer for points with different scalar type and-or dimensionality

Deprecated:
use m.cast<NewScalar>()

Definition at line 44 of file eigen_matrix_addons.h.

template<typename OtherDerived >
void ImportHomo ( const MatrixBase< OtherDerived > &  b  )  [inline]

importer for homogeneous points

Definition at line 56 of file eigen_matrix_addons.h.

Matrix LocalToGlobal ( ParamType  p  )  const [inline]

Local to Glocal (provided for uniformity with other spatial classes. trivial for points)

Definition at line 102 of file eigen_matrix_addons.h.

operator const EquivVcgType & (  )  const

Definition at line 37 of file eigen_matrix_addons.h.

operator EquivVcgType & (  ) 

Definition at line 36 of file eigen_matrix_addons.h.

void ToPolar ( Scalar &  ro,
Scalar &  theta,
Scalar &  phi 
) const

Convert to polar coordinates from cartesian coordinates.

Theta is the azimuth angle and ranges between [0, 360) degrees. Phi is the elevation angle (not the polar angle) and ranges between [-90, 90] degrees.

Note:
Note that instead of the classical polar angle, which ranges between 0 and 180 degrees we opt for the elevation angle to obtain a more intuitive spherical coordinate system.

Definition at line 117 of file eigen_matrix_addons.h.

EIGEN_DEPRECATED Scalar & V ( const int  i  )  const [inline]
Deprecated:
use m.coeff(i) or m[i] or m(i)

Definition at line 90 of file eigen_matrix_addons.h.

EIGEN_DEPRECATED const Scalar * V (  ) 
Deprecated:
use .data()
Deprecated:
use .data()

Definition at line 86 of file eigen_matrix_addons.h.

const Scalar & W (  )  [inline]

note, W always returns the last entry

Definition at line 81 of file eigen_matrix_addons.h.

Scalar & X (  )  const [inline]

Definition at line 74 of file eigen_matrix_addons.h.

Scalar & Y (  )  const [inline]

Definition at line 75 of file eigen_matrix_addons.h.

Scalar & Z (  )  const [inline]

Definition at line 76 of file eigen_matrix_addons.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:19:08 2013