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