|
World Builder
0.1.0-pre
A geodyanmic initial conditions generator
|
#include <cartesian.h>


Public Member Functions | |
| Cartesian () | |
| ~Cartesian () | |
| virtual void | decare_entries (std::string &path) |
| virtual CoordinateSystem | natural_coordinate_system () const |
| virtual std::array< double, 3 > | cartesian_to_natural_coordinates (const std::array< double, 3 > &position) const |
| virtual std::array< double, 3 > | natural_to_cartesian_coordinates (const std::array< double, 3 > &position) const |
Public Member Functions inherited from WorldBuilder::CoordinateSystems::Interface | |
| Interface () | |
| virtual | ~Interface () |
This implements a Cartesian geometry model.The Cartesian geometry model doesn't do anything with the coordinates, but is needed to have a common interface for all the geometry models.
Definition at line 37 of file cartesian.h.
| WorldBuilder::CoordinateSystems::Cartesian::Cartesian | ( | ) |
constructor
Definition at line 26 of file cartesian.cc.
| WorldBuilder::CoordinateSystems::Cartesian::~Cartesian | ( | ) |
Destructor
Definition at line 29 of file cartesian.cc.
|
virtual |
Takes the Cartesian points (x,z or x,y,z) and returns standardized coordinates which are most 'natural' to the geometry model. For a box this will be (x,z) in 2d or (x,y,z) in 3d, and for a spheroid geometry model it will be (radius, longitude) in 2d and (radius, longitude, latitude) in 3d.
Implements WorldBuilder::CoordinateSystems::Interface.
Definition at line 45 of file cartesian.cc.
|
virtual |
Read in the world builder file
Implements WorldBuilder::CoordinateSystems::Interface.
Definition at line 33 of file cartesian.cc.
|
virtual |
Returns what the natural coordinate system for this Coordinate System is.
Implements WorldBuilder::CoordinateSystems::Interface.
Definition at line 38 of file cartesian.cc.
|
virtual |
Undoes the action of cartesian_to_natural_coordinates, and turns the coordinate system which is most 'natural' to the geometry model into Cartesian coordinates.
Implements WorldBuilder::CoordinateSystems::Interface.
Definition at line 52 of file cartesian.cc.