#include <CAngle.h>
Public Member Functions | |
CAngle (float, float) | |
Static Public Member Functions | |
static CAngle | transform (CAngle angle1, CAngle angle2) |
Public Attributes | |
float | theta |
polar angle in radians | |
float | phi |
azimuth angle in radians | |
Static Public Attributes | |
static float const | pi = acos(-1.) |
3.14159 |
!
Class to deal with polar angles
CAngle::CAngle | ( | float | theta0, | |
float | phi0 | |||
) |
Constructor
This subroutine performs a rotational transformation.
theta1,phi1 are the coordinates (spherical angles in radians)of a unit vector in the original coordinate systems. the z axis is made to rotate in the phi=phi2 plane by an angle theta2. The coordinates of the vector in the new reference frame are theta3,phi3
angle1 | is the initial (theta,phi) angles | |
angle2 | specifies the (theta,phi) rotation |