25 #include <ns3/vector.h> 129 Angles (
double azimuth,
double inclination);
150 Angles (Vector v, Vector o);
void SetInclination(double inclination)
Setter for inclination angle.
friend std::istream & operator>>(std::istream &is, Angles &a)
double WrapTo180(double a)
Wrap angle in [-180, 180)
double DegreesToRadians(double degrees)
converts degrees to radians
Class holding the azimuth and inclination angles of spherical coordinates.
Angles()
Default constructor is disabled.
double m_azimuth
the azimuth angle in radians
double m_inclination
the inclination angle in radians
double GetAzimuth(void) const
Getter for azimuth angle.
double WrapTo360(double a)
Wrap angle in [0, 360)
double WrapToPi(double a)
Wrap angle in [-M_PI, M_PI)
double WrapTo2Pi(double a)
Wrap angle in [0, 2*M_PI)
void CheckIfValid(void) 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.
void SetAzimuth(double azimuth)
Setter for azimuth angle.
double RadiansToDegrees(double radians)
converts radians to degrees
static bool m_printDeg
flag for printing in radians or degrees units
friend std::ostream & operator<<(std::ostream &os, const Angles &a)
double GetInclination(void) const
Getter for inclination angle.
void NormalizeAngles(void)
Normalize the angle azimuth angle range between in [-M_PI, M_PI) while checking if the angle is valid...