Class representing a manifold with different coordinate systems and metrics. More...
#include <geometry.h>
Public Member Functions | |
| Manifold () | |
| Constructor. | |
| virtual | ~Manifold () |
| Destructor. | |
| CoordinateConversion * | getConversion (int i, int j) |
| Get a coordinate conversion. More... | |
| Metric * | getMetric (int i) |
| Get a metric. More... | |
| Point | convertPointTo (Point p, int system) |
| Convert a point to another coordinate system. More... | |
| vector4 | convertVectorTo (vector4 v, Point p, int system) |
| Convert a vector to another coordinate system. More... | |
| virtual int | recommendCoordSystem (Point p) |
| Get the best coordinate system to use at a point. More... | |
Protected Attributes | |
| int | nCoordSystems |
| CoordinateConversion *** | conversions |
| Metric ** | metrics |
Class representing a manifold with different coordinate systems and metrics.
This class represents a manifold with multiple coordinate systems, conversions between them and a metric, which can be expressed in either of the systems.
Convert a point to another coordinate system.
| p | The point to be converted |
| system | The target coordinate system |
Convert a vector to another coordinate system.
| v | The vector to be converted |
| p | The point at which the vector is defined |
| system | The target coordinate system |
| CoordinateConversion * Manifold::getConversion | ( | int | i, |
| int | j | ||
| ) |
Get a coordinate conversion.
| i | Number of the source coordinate system |
| j | Number of the target coordinate system |
| Metric * Manifold::getMetric | ( | int | i | ) |
Get a metric.
| i | Number of the coordinate system |
|
virtual |
Get the best coordinate system to use at a point.
| p | The point |
Reimplemented in KerrManifold, and SchwManifold.
1.8.3.1