GR Engine
A physics engine in curved space-time
 All Classes Files Functions Variables
Public Member Functions | List of all members
CoordinateConversion Class Referenceabstract

Basic class for conversions between coordinate systems. More...

#include <geometry.h>

Inheritance diagram for CoordinateConversion:
EFToNearPole0 EFToNearPolePi IdentityConversion NearPole0ToEF NearPolePiToEF NearPoleToNearPole

Public Member Functions

 CoordinateConversion ()
 Constructor.
 
virtual ~CoordinateConversion ()
 Destructor.
 
virtual Point convertPoint (Point p)=0
 Conversion of a point. More...
 
virtual double jacobian (int i, int j, Point p)=0
 Jacobian of the conversion. More...
 
virtual double inv_jacobian (int i, int j, Point p)=0
 Inverse jacobian of the conversion. More...
 

Detailed Description

Basic class for conversions between coordinate systems.

This class provides interface for converting points and vectors between different coordinate systems defined on a manifold.

Member Function Documentation

virtual Point CoordinateConversion::convertPoint ( Point  p)
pure virtual

Conversion of a point.

This method converts a single point to a different coordinate system.

Parameters
pPoint to be converted
Returns
Converted point

Implemented in IdentityConversion, NearPoleToNearPole, NearPolePiToEF, EFToNearPolePi, NearPole0ToEF, and EFToNearPole0.

virtual double CoordinateConversion::inv_jacobian ( int  i,
int  j,
Point  p 
)
pure virtual

Inverse jacobian of the conversion.

This method returns the inverse jacobian (matrix of partial derivatives) of the transformation between coordinate systems.

Parameters
iThe number of the row
jThe number of the column
pThe point at which the jacobian is calculated
Returns
dy^i/dx^j(p), where y^i - new coordinates, x^j - old coordinates

Implemented in IdentityConversion, NearPoleToNearPole, NearPolePiToEF, EFToNearPolePi, NearPole0ToEF, and EFToNearPole0.

virtual double CoordinateConversion::jacobian ( int  i,
int  j,
Point  p 
)
pure virtual

Jacobian of the conversion.

This method returns the jacobian (matrix of partial derivatives) of the transformation between coordinate systems.

Parameters
iThe number of the row
jThe number of the column
pThe point at which the jacobian is calculated
Returns
dx^i/dy^j(p), where x^i - old coordinates, y^j - new coordinates

Implemented in IdentityConversion, NearPoleToNearPole, NearPolePiToEF, EFToNearPolePi, NearPole0ToEF, and EFToNearPole0.


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