GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
Polar< T > Struct Template Reference

this data class represents a postion inspherical coordinates and a polarization relative to the sphircal coordinate system More...

#include <shear.h>

Inheritance diagram for Polar< T >:
Collaboration diagram for Polar< T >:

Public Attributes

Point_2d shear
 
kappa
 
- Public Attributes inherited from Utilities::Geometry::SphericalPoint< T >
r
 
theta
 
phi
 

Additional Inherited Members

- Public Member Functions inherited from Utilities::Geometry::SphericalPoint< T >
 SphericalPoint (T r, T theta, T phi)
 
 SphericalPoint (Point_3d< T > &x)
 
SphericalPointoperator= (const SphericalPoint &p)
 
SphericalPointoperator= (Point_3d< T > &x)
 
bool operator== (const SphericalPoint &p) const
 
void TOcartisian (T x[]) const
 output Cartesian coordinates of the point
 
Point_3d< T > TOcartisian () const
 output cartisian coordinates of the point
 
void cartisianTOspherical (T const x[])
 set the spherical coordinates of the point from the cartisian coordinates
 
void TOspherical (Point_3d< T > &x)
 
void StereographicProjection (const SphericalPoint &central, T x[]) const
 Calculates the stereographic projection of the point onto a plane.
 
void StereographicProjection (const SphericalPoint &central, Point_2d &x) const
 
Point_2d StereographicProjection (const SphericalPoint &central) const
 
void OrthographicProjection (const SphericalPoint &central, T x[]) const
 Calculates the orthographic projection of the point onto a plane.
 
Point_2d OrthographicProjection (const SphericalPoint &central) const
 
void InverseOrthographicProjection (const SphericalPoint &central, T const x[])
 Convert from an orthographic projection of the plane onto the unit sphere.
 
void InverseOrthographicProjection (const SphericalPoint &central, const Point_2d &x)
 
SphericalPoint< T > InverseOrthographicProjection (const Point_2d &x)
 
angular_separation (SphericalPoint &p)
 angle between points. This uses the haversine formula that is more stable for small angles than the more commin formula
 
Point_3d< T > unitPhi ()
 unit vector in phi direction
 
Point_3d< T > unitTheta ()
 unit vector in theta direction
 
OrthographicAngleTheta (const SphericalPoint &central)
 the angle between the orthographic x-axis and the constant theta curve
 
OrthographicAnglePhi (const SphericalPoint &central)
 the angle between the orthographic x-axis and the constant Phi curve
 
Point_3d< T > theta_hat () const
 
Point_3d< T > phi_hat () const
 

Detailed Description

template<typename T>
struct Polar< T >

this data class represents a postion inspherical coordinates and a polarization relative to the sphircal coordinate system


The documentation for this struct was generated from the following file: