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

Go to the source code of this file.

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::ostream & ns3::operator<< (std::ostream &os, const Angles &a)
 
std::istream & ns3::operator>> (std::istream &is, Angles &a)
 
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)
 

Variables

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