12#include <ns3/vector.h>
117 Angles(
double azimuth,
double inclination);
138 Angles(Vector v, Vector o);
Class holding the azimuth and inclination angles of spherical coordinates.
void NormalizeAngles()
Normalize the angle azimuth angle range between in [-M_PI, M_PI) while checking if the angle is valid...
double m_inclination
the inclination angle in radians
double GetInclination() const
Getter for inclination angle.
friend std::istream & operator>>(std::istream &is, Angles &a)
Stream extraction operator.
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
double GetAzimuth() const
Getter for azimuth angle.
friend std::ostream & operator<<(std::ostream &os, const Angles &a)
Stream insertion operator.
void CheckIfValid() const
Check if Angle is valid or not Warns the user if the Angle is undefined (non-finite azimuth or inclin...
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