A Discrete-Event Network Simulator
API
angles.cc File Reference
#include <ns3/log.h>
#include <cmath>
#include "angles.h"
+ Include dependency graph for angles.cc:

Go to the source code of this file.

Namespaces

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

Functions

std::vector< double > ns3::DegreesToRadians (const std::vector< double > &degrees)
 converts degrees to radians More...
 
double ns3::DegreesToRadians (double degrees)
 converts degrees to radians More...
 
std::ostream & ns3::operator<< (std::ostream &os, const Angles &a)
 
std::istream & ns3::operator>> (std::istream &is, Angles &a)
 
std::vector< double > ns3::RadiansToDegrees (const std::vector< double > &radians)
 converts radians to degrees More...
 
double ns3::RadiansToDegrees (double radians)
 converts radians to degrees More...
 
double ns3::WrapTo180 (double a)
 Wrap angle in [-180, 180) More...
 
double ns3::WrapTo2Pi (double a)
 Wrap angle in [0, 2*M_PI) More...
 
double ns3::WrapTo360 (double a)
 Wrap angle in [0, 360) More...
 
double ns3::WrapToPi (double a)
 Wrap angle in [-M_PI, M_PI) More...
 

Variables

const double ns3::DEG_TO_RAD = M_PI / 180.0
 Degrees to Radians conversion constant. More...
 
const double ns3::RAD_TO_DEG = 180.0 / M_PI
 Radians to Degrees conversion constant. More...