nemo::Cartesian2Spherical< T > Class Template Reference

This mapping type transforms n-dimensional cartesian coordinates to spherical coordinates. More...

#include <VectorMappings.h>

List of all members.

Public Member Functions

MathVector< T > evaluate (MathVector< T > cartesian) const
 Compute the outut value for a given input value.
MappingDefinition< MathVector
< T >, MathVector< T > > * 
getInverse () const
 Creates an inverse function if applicable.

Static Public Member Functions

static Mapping< MathVector< T >
, MathVector< T > > 
create ()

Friends

class Spherical2Cartesian< T >

Detailed Description

template<typename T = double>
class nemo::Cartesian2Spherical< T >

This mapping type transforms n-dimensional cartesian coordinates to spherical coordinates.

The sperical coordinates are computed accordingly to the conventions in Spherical2Cartesian.

This mapping type inverts itself with Spherical2Cartesian mappings.

Definition at line 329 of file VectorMappings.h.


Member Function Documentation

template<typename T = double>
static Mapping<MathVector<T>,MathVector<T> > nemo::Cartesian2Spherical< T >::create (  )  [inline, static]

Definition at line 331 of file VectorMappings.h.

template<typename T = double>
MathVector<T> nemo::Cartesian2Spherical< T >::evaluate ( MathVector< T >  value  )  const [inline, virtual]

Compute the outut value for a given input value.

Implements nemo::MappingDefinition< MathVector< T >, MathVector< T > >.

Definition at line 335 of file VectorMappings.h.

template<typename T = double>
MappingDefinition<MathVector<T>,MathVector<T> >* nemo::Cartesian2Spherical< T >::getInverse (  )  const [inline, virtual]

Creates an inverse function if applicable.

This functionality is optional! If the MappingDefinition implements a mathematical function that is invertible, it should implement this method, but does not have to. For non-bijective functions it is sound to return a generalized (left or right) inverse function. For a function f this means that it must return a function g such that f(g(f(x))) = f(x) and g(f(g(x))) = g(x). If the Mapping is not invertible in this sense, it MUST throw an exception when getInverse() is called.

Reimplemented from nemo::MappingDefinition< MathVector< T >, MathVector< T > >.

Definition at line 373 of file VectorMappings.h.


Friends And Related Function Documentation

template<typename T = double>
friend class Spherical2Cartesian< T > [friend]

Definition at line 378 of file VectorMappings.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 25 12:49:59 2013 for NemoMath by  doxygen 1.6.3