![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
|
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
![]() |
pointing Class Reference |
Public Member Functions | |
pointing () | |
pointing (double Theta, double Phi) | |
pointing (const vec3 &inp) | |
operator vec3 () const | |
vec3 | to_vec3 () const |
void | normalize () |
Public Attributes | |
double | theta |
double | phi |
Related Functions | |
(Note that these are not member functions.) | |
void | vec2pnt (const vec3 &vec, pointing &ptg) |
std::ostream & | operator<< (std::ostream &os, const pointing &p) |
Definition at line 46 of file pointing.h.
pointing::pointing | ( | ) | [inline] |
Default constructor. theta and phi are not initialized.
Definition at line 55 of file pointing.h.
pointing::pointing | ( | double | Theta, | |
double | Phi | |||
) | [inline] |
Creates a pointing with Theta and Phi.
Definition at line 57 of file pointing.h.
pointing::pointing | ( | const vec3 & | inp | ) | [inline] |
Creates a pointing from the vector inp. inp need not be normalized.
Definition at line 62 of file pointing.h.
pointing::operator vec3 | ( | ) | const [inline] |
Returns a normalized vector pointing in the same direction.
Definition at line 71 of file pointing.h.
vec3 pointing::to_vec3 | ( | ) | const [inline] |
Returns a normalized vector pointing in the same direction.
Definition at line 77 of file pointing.h.
void pointing::normalize | ( | ) | [inline] |
Changes the angles so that 0<=theta<=pi and 0<=phi<2*pi.
Definition at line 83 of file pointing.h.
double pointing::theta |
Colatitude of the pointing (i.e. the North pole is at theta=0).
Definition at line 50 of file pointing.h.
double pointing::phi |
Longitude of the pointing.
Definition at line 52 of file pointing.h.
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |