latest version v1.9 - last update 10 Apr 2010 |
Computes the elements of the cartesian coordinate system (real,imaginary) based on the parameters of the polar coordinate system (absolute value, phase). More...
#include <ltiPolarToCartesian.h>
Classes | |
class | parameters |
the parameters for the class polarToCartesian More... | |
Public Member Functions | |
polarToCartesian () | |
polarToCartesian (const polarToCartesian &other) | |
virtual | ~polarToCartesian () |
virtual const char * | getTypeName () const |
bool | apply (matrix< T > &abs_r, matrix< T > &ph_i) const |
bool | apply (const matrix< T > &absvalue, const matrix< T > &phase, matrix< T > &real, matrix< T > &imaginary) const |
bool | apply (const tpointList< double > &src, tpointList< T > &dest, const tpoint< double > origin=tpoint< double >(0.0, 0.0)) const |
polarToCartesian & | copy (const polarToCartesian &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Computes the elements of the cartesian coordinate system (real,imaginary) based on the parameters of the polar coordinate system (absolute value, phase).
lti::polarToCartesian< T >::polarToCartesian | ( | ) |
default constructor
lti::polarToCartesian< T >::polarToCartesian | ( | const polarToCartesian< T > & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::polarToCartesian< T >::~polarToCartesian | ( | ) | [virtual] |
destructor
bool lti::polarToCartesian< T >::apply | ( | const tpointList< double > & | src, | |
tpointList< T > & | dest, | |||
const tpoint< double > | origin = tpoint< double >(0.0, 0.0) | |||
) | const |
operates on a copy of the given parameters.
src | tpointList<T>& with the polar data the absolute in x and the angle in y. | |
dest | this pointList gets the cartesian data | |
origin | the origin of the coordiante system. the angles and the absolute values are relative to this point. Default is (0,0). |
bool lti::polarToCartesian< T >::apply | ( | const matrix< T > & | absvalue, | |
const matrix< T > & | phase, | |||
matrix< T > & | real, | |||
matrix< T > & | imaginary | |||
) | const |
operates on a copy of the given parameters.
If the input matrices have different size, the result will be empty
bool lti::polarToCartesian< T >::apply | ( | matrix< T > & | abs_r, | |
matrix< T > & | ph_i | |||
) | const |
operates on the given parameter.
If the input matrices have different size, the result will be empty
abs_r | matrix<T> the absolute value source data. | |
ph_i | matrix<T> the phase source data. |
virtual functor* lti::polarToCartesian< T >::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
polarToCartesian& lti::polarToCartesian< T >::copy | ( | const polarToCartesian< T > & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::polarToCartesian< T >::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::transform.
virtual const char* lti::polarToCartesian< T >::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("polarToCartesian")
Reimplemented from lti::transform.