A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
angles.h File Reference
#include <ns3/vector.h>
#include <vector>
+ Include dependency graph for angles.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns3::Angles
 Class holding the azimuth and inclination angles of spherical coordinates. More...
 

Namespaces

namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Functions

std::vector< doublens3::DegreesToRadians (const std::vector< double > &degrees)
 converts degrees to radians
 
double ns3::DegreesToRadians (double degrees)
 converts degrees to radians
 
std::vector< doublens3::RadiansToDegrees (const std::vector< double > &radians)
 converts radians to degrees
 
double ns3::RadiansToDegrees (double radians)
 converts radians to degrees
 
double ns3::WrapTo180 (double a)
 Wrap angle in [-180, 180)
 
double ns3::WrapTo2Pi (double a)
 Wrap angle in [0, 2*M_PI)
 
double ns3::WrapTo360 (double a)
 Wrap angle in [0, 360)
 
double ns3::WrapToPi (double a)
 Wrap angle in [-M_PI, M_PI)