struct holding the azimuth and inclination angles of spherical coordinates. More...
#include "angles.h"
Public Member Functions | |
| Angles () | |
| default constructor, will initialize phi and theta to zero  More... | |
| Angles (double phi, double theta) | |
| this constructor allows to specify phi and theta  More... | |
| Angles (Vector v) | |
| this constructor will initialize phi and theta by converting the given 3D vector from cartesian coordinates to spherical coordinates  More... | |
| Angles (Vector v, Vector o) | |
| this constructor initializes an Angles instance with the angles of the spherical coordinates of point v respect to point o  More... | |
Public Attributes | |
| double | phi | 
| the azimuth angle in radians  More... | |
| double | theta | 
| the inclination angle in radians  More... | |
struct holding the azimuth and inclination angles of spherical coordinates.
The notation is the one used in "Antenna Theory - Analysis and Design", C.A. Balanis, Wiley, 2nd Ed., section 2.2 "Radiation pattern". This notation corresponds to the standard spherical coordinates, with phi measured counterclockwise in the x-y plane off the x-axis, and theta measured off the z-axis.
     ^
   z | 
     |_ theta
     | \
     | /|
     |/ |   y
     +-------->
    /  \|
   /___/
x /  phi
 |/ 
| ns3::Angles::Angles | ( | ) | 
| ns3::Angles::Angles | ( | double | phi, | 
| double | theta | ||
| ) | 
| ns3::Angles::Angles | ( | Vector | v | ) | 
| ns3::Angles::Angles | ( | Vector | v, | 
| Vector | o | ||
| ) | 
this constructor initializes an Angles instance with the angles of the spherical coordinates of point v respect to point o
| v | the point (in cartesian coordinates) for which the angles are determined | 
| o | the origin (in cartesian coordinates) of the spherical coordinate system | 
| double ns3::Angles::phi | 
the azimuth angle in radians
Definition at line 111 of file angles.h.
Referenced by IsotropicAntennaModelTestCase::BuildNameString(), CosineAntennaModelTestCase::BuildNameString(), ParabolicAntennaModelTestCase::BuildNameString(), OneVectorConstructorTestCase::DoRun(), TwoVectorsConstructorTestCase::DoRun(), ns3::CosineAntennaModel::GetGainDb(), ns3::ParabolicAntennaModel::GetGainDb(), ns3::operator<<(), and ns3::operator>>().
| double ns3::Angles::theta | 
the inclination angle in radians
Definition at line 117 of file angles.h.
Referenced by IsotropicAntennaModelTestCase::BuildNameString(), ParabolicAntennaModelTestCase::BuildNameString(), CosineAntennaModelTestCase::BuildNameString(), OneVectorConstructorTestCase::DoRun(), TwoVectorsConstructorTestCase::DoRun(), ns3::operator<<(), and ns3::operator>>().