25 #include <ns3/vector.h>
129 Angles (
double azimuth,
double inclination);
150 Angles (Vector v, Vector o);
Class holding the azimuth and inclination angles of spherical coordinates.
friend std::ostream & operator<<(std::ostream &os, const Angles &a)
Stream insertion operator.
double GetInclination(void) const
Getter for inclination angle.
double m_inclination
the inclination angle in radians
void NormalizeAngles(void)
Normalize the angle azimuth angle range between in [-M_PI, M_PI) while checking if the angle is valid...
void CheckIfValid(void) const
Check if Angle is valid or not Warns the user if the Angle is undefined (non-finite azimuth or inclin...
double GetAzimuth(void) const
Getter for azimuth angle.
static bool m_printDeg
flag for printing in radians or degrees units
void SetAzimuth(double azimuth)
Setter for azimuth angle.
Angles()
Default constructor is disabled.
void SetInclination(double inclination)
Setter for inclination angle.
double m_azimuth
the azimuth angle in radians
friend std::istream & operator>>(std::istream &is, Angles &a)
Stream extraction operator.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double WrapToPi(double a)
Wrap angle in [-M_PI, M_PI)
double WrapTo180(double a)
Wrap angle in [-180, 180)
double WrapTo360(double a)
Wrap angle in [0, 360)
double DegreesToRadians(double degrees)
converts degrees to radians
double WrapTo2Pi(double a)
Wrap angle in [0, 2*M_PI)
double RadiansToDegrees(double radians)
converts radians to degrees