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 bool operator!=(const Vector2D &a, const Vector2D &b)
Inequality operator.
friend double CalculateDistanceSquared(const Vector2D &a, const Vector2D &b)
Calculate the squared Cartesian distance between two points.
friend std::istream & operator>>(std::istream &is, Vector2D &vector)
Input streamer.
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.
friend std::ostream & operator<<(std::ostream &os, const Vector2D &vector)
Output streamer.
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 std::ostream & operator<<(std::ostream &os, const Vector3D &vector)
Output streamer.
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.
double x
x coordinate of vector
friend bool operator==(const Vector3D &a, const Vector3D &b)
Equality operator.
friend std::istream & operator>>(std::istream &is, Vector3D &vector)
Input streamer.
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()
#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.
std::ostream & operator<<(std::ostream &os, const Angles &a)
std::istream & operator>>(std::istream &is, Angles &a)
bool operator<(const EventId &a, const EventId &b)
double CalculateDistance(const Vector3D &a, const Vector3D &b)
double CalculateDistanceSquared(const Vector3D &a, const Vector3D &b)