55 Vector3D (
double _x,
double _y,
double _z);
Attribute helper (ATTRIBUTE_ )macros definition.
ns3::AttributeValue, ns3::AttributeAccessor and ns3::AttributeChecker declarations.
Smart pointer class similar to boost::intrusive_ptr.
friend std::istream & operator>>(std::istream &is, Vector2D &vector)
Input streamer.
friend bool operator!=(const Vector2D &a, const Vector2D &b)
Inequality operator.
friend std::ostream & operator<<(std::ostream &os, const Vector2D &vector)
Output streamer.
friend double CalculateDistanceSquared(const Vector2D &a, const Vector2D &b)
Calculate the squared Cartesian distance between two points.
double y
y coordinate of vector
friend bool operator==(const Vector2D &a, const Vector2D &b)
Equality operator.
friend bool operator<=(const Vector2D &a, const Vector2D &b)
Less than or equal to comparison operator.
Vector2D()
Constructor: (0.0, 0.0)
friend bool operator<(const Vector2D &a, const Vector2D &b)
Less than comparison operator.
double x
x coordinate of vector
friend Vector2D operator+(const Vector2D &a, const Vector2D &b)
Addition operator.
friend bool operator>(const Vector2D &a, const Vector2D &b)
Greater than comparison operator.
friend bool operator>=(const Vector2D &a, const Vector2D &b)
Greater than or equal to comparison operator.
friend Vector2D operator-(const Vector2D &a, const Vector2D &b)
Subtraction operator.
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 GetLengthSquared() const
Compute the squared length of the vector.
AttributeChecker implementation for Vector3DValue.
double GetLength() const
Compute the length (magnitude) of the vector.
friend double CalculateDistance(const Vector3D &a, const Vector3D &b)
Calculate the Cartesian distance between two points.
friend bool operator>=(const Vector3D &a, const Vector3D &b)
Greater than or equal to comparison operator.
friend bool operator!=(const Vector3D &a, const Vector3D &b)
Inequality operator.
Vector3DValue VectorValue
Vector alias typedef for compatibility with mobility models.
friend Vector3D operator+(const Vector3D &a, const Vector3D &b)
Addition operator.
friend std::ostream & operator<<(std::ostream &os, const Vector3D &vector)
Output streamer.
double x
x coordinate of vector
friend std::istream & operator>>(std::istream &is, Vector3D &vector)
Input streamer.
friend bool operator==(const Vector3D &a, const Vector3D &b)
Equality operator.
Vector3D Vector
Vector alias typedef for compatibility with mobility models.
friend Vector3D operator-(const Vector3D &a, const Vector3D &b)
Subtraction operator.
friend bool operator>(const Vector3D &a, const Vector3D &b)
Greater than comparison operator.
Vector3DChecker VectorChecker
Vector alias typedef for compatibility with mobility models.
Vector3D()
Create vector (0.0, 0.0, 0.0)
double z
z coordinate of vector
friend bool operator<=(const Vector3D &a, const Vector3D &b)
Less than or equal to comparison operator.
double y
y coordinate of vector
double GetLengthSquared() const
Compute the squared length of the vector.
friend bool operator<(const Vector3D &a, const Vector3D &b)
Less than comparison operator.
friend double CalculateDistanceSquared(const Vector3D &a, const Vector3D &b)
Calculate the squared Cartesian distance between two points.
AttributeValue implementation for Vector3D.
Ptr< const AttributeChecker > MakeVectorChecker(void)
#define ATTRIBUTE_ACCESSOR_DEFINE(type)
Define the attribute accessor functions MakeTypeAccessor for class type.
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool operator<(const EventId &a, const EventId &b)
double CalculateDistance(const Vector3D &a, const Vector3D &b)
std::istream & operator>>(std::istream &is, Angles &a)
double CalculateDistanceSquared(const Vector3D &a, const Vector3D &b)
std::ostream & operator<<(std::ostream &os, const Angles &a)