36 return Vector3D(v1.x + v2.x, v1.y + v2.y, v1.z + v2.z);
42 return Vector3D(v1.x - v2.x, v1.y - v2.y, v1.z - v2.z);
48 return Vector3D(vector.x * scalar, vector.y * scalar, vector.z * scalar);
54 return vector * scalar;
60 return Vector3D(v1.y * v2.z - v1.z * v2.y,
61 v1.z * v2.x - v1.x * v2.z,
62 v1.x * v2.y - v1.y * v2.x);
68 return (v1.x * v2.x + v1.y * v2.y + v1.z * v2.z);
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.
Vector3D operator*(const Vector3D &vector, double scalar)
Multiplication between a Vector3D object and a scalar.
double Magnitude(const Vector3D &vector)
Magnitude of a Vector3D object.
double DotProduct(const Vector3D &v1, const Vector3D &v2)
Dot product of two Vector3D objects.
Vector3D operator-(const Vector3D &v1, const Vector3D &v2)
Subtraction of Vector3D objects.
Vector3D operator+(const Vector3D &v1, const Vector3D &v2)
extensions to ns3::Vector3D to support additional operations
double MagnitudeSquared(const Vector3D &vector)
The square of the magnitude of a Vector3D object.
Vector3D CrossProduct(const Vector3D &v1, const Vector3D &v2)
Cross product of two Vector3D objects.