20 #include <ns3/antenna-model.h>
44 static std::string BuildNameString(Vector v);
53 void DoRun()
override;
62 std::ostringstream oss;
106 void DoRun()
override;
116 std::ostringstream oss;
117 oss <<
" v = " << v <<
", o = " << o;
269 Angles(M_PI, 3 * M_PI_4)),
273 Angles(3 * M_PI_4, M_PI_2)),
277 Angles(-3 * M_PI_4, M_PI_2)),
284 Angles(M_PI_2, 3 * M_PI_4)),
292 Angles(-M_PI_2, 3 * M_PI_4)),
301 Angles(M_PI_4, 3 * M_PI_4)),
309 Angles(3 * M_PI_4, M_PI_4)),
347 Angles(3 * M_PI_4, M_PI_2)),
352 Angles(M_PI_4, 3 * M_PI_4)),
355 Vector(-0.5, 12.45, -1),
Angles Test using one vector for initialization.
void DoRun() override
Implementation to actually run this TestCase.
OneVectorConstructorTestCase(Vector v, Angles a)
Constructor.
static std::string BuildNameString(Vector v)
Build the test name.
Angles Test using two vectors for initialization.
TwoVectorsConstructorTestCase(Vector v, Vector o, Angles a)
Constructor.
void DoRun() override
Implementation to actually run this TestCase.
static std::string BuildNameString(Vector v, Vector o)
Build the test name.
Class holding the azimuth and inclination angles of spherical coordinates.
double GetInclination() const
Getter for inclination angle.
double GetAzimuth() const
Getter for azimuth angle.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
Vector3D Vector
Vector alias typedef for compatibility with mobility models.
#define NS_TEST_EXPECT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report if ...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static AnglesTestSuite g_staticAnglesTestSuiteInstance
Static variable for test initialization.