55 Vector3D (
double _x,
double _y,
double _z);
friend bool operator<(const Vector2D &a, const Vector2D &b)
Less than comparison operator.
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
double x
x coordinate of vector
Smart pointer class similar to boost::intrusive_ptr.
Ptr< const AttributeChecker > MakeVectorChecker(void)
friend std::istream & operator>>(std::istream &is, Vector2D &vector)
Input streamer.
friend bool operator<(const Vector3D &a, const Vector3D &b)
Less than comparison operator.
friend Vector2D operator-(const Vector2D &a, const Vector2D &b)
Subtraction operator.
friend Vector3D operator-(const Vector3D &a, const Vector3D &b)
Subtraction operator.
bool operator<(const EventId &a, const EventId &b)
double GetLength() const
Compute the length (magnitude) of the vector.
double x
x coordinate of vector
Vector2D()
Constructor: (0.0, 0.0)
double y
y coordinate of vector
double CalculateDistance(const Vector3D &a, const Vector3D &b)
Vector3D()
Create vector (0.0, 0.0, 0.0)
ns3::AttributeValue, ns3::AttributeAccessor and ns3::AttributeChecker declarations.
Vector3DChecker VectorChecker
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
friend Vector2D operator+(const Vector2D &a, const Vector2D &b)
Addition operator.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double y
y coordinate of vector
friend std::ostream & operator<<(std::ostream &os, const Vector2D &vector)
Output streamer.
Attribute helper (ATTRIBUTE_ )macros definition.
#define ATTRIBUTE_ACCESSOR_DEFINE(type)
Define the attribute accessor functions MakeTypeAccessor for class type.
Vector3DValue VectorValue
friend std::ostream & operator<<(std::ostream &os, const Vector3D &vector)
Output streamer.
friend std::istream & operator>>(std::istream &is, Vector3D &vector)
Input streamer.
friend Vector3D operator+(const Vector3D &a, const Vector3D &b)
Addition operator.
friend double CalculateDistance(const Vector3D &a, const Vector3D &b)
Calculate the Cartesian distance between two points.
AttributeValue implementation for Vector3D.
AttributeChecker implementation for Vector3DValue.
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type.
double GetLength() const
Compute the length (magnitude) of the vector.
friend double CalculateDistance(const Vector2D &a, const Vector2D &b)
Calculate the Cartesian distance between two points.
double z
z coordinate of vector