core module¶
This module contains the basic classes for coordinate systems and their position transformation:
-
class
einsteinpy.coordinates.core.Cartesian(x, y, z)[source]¶ Class for Cartesian Coordinates and related transformations.
Constructor.
-
si_values()[source]¶ Function for returning values in SI units.
- Returns
Array containing values in SI units (m, m, m)
- Return type
-
norm()[source]¶ Function for finding euclidean norm of a vector.
- Returns
Euclidean norm with units.
- Return type
-
dot(target)[source]¶ Dot product of two vectors.
- Parameters
target (Cartesian) –
- Returns
Dot product with units
- Return type
-
to_spherical()[source]¶ Method for conversion to spherical coordinates.
- Returns
Spherical representation of the Cartesian Coordinates.
- Return type
-
-
class
einsteinpy.coordinates.core.Spherical(r, theta, phi)[source]¶ Class for Spherical Coordinates and related transformations.
Constructor.
-
si_values()[source]¶ Function for returning values in SI units.
- Returns
Array containing values in SI units (m, rad, rad)
- Return type
-
to_cartesian()[source]¶ Method for conversion to cartesian coordinates.
- Returns
Cartesian representation of the Spherical Coordinates.
- Return type
-
-
class
einsteinpy.coordinates.core.BoyerLindquist(r, theta, phi, a)[source]¶ Class for Spherical Coordinates and related transformations.
Constructor.
-
si_values()[source]¶ Function for returning values in SI units.
- Returns
Array containing values in SI units (m, rad, rad)
- Return type
-