A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::Vector2D Class Reference

a 3d vector More...

#include <vector.h>

Public Member Functions

 Vector2D (double _x, double _y)
 
 Vector2D ()
 

Public Attributes

double x
 
double y
 

Detailed Description

a 3d vector

Definition at line 63 of file vector.h.

Constructor & Destructor Documentation

ns3::Vector2D::Vector2D ( double  _x,
double  _y 
)
Parameters
_xx coordinate of vector
_yy coordinate of vector

Create vector (_x, _y)

Definition at line 56 of file vector.cc.

References NS_LOG_FUNCTION.

ns3::Vector2D::Vector2D ( )

Create vector vector (0.0, 0.0)

Definition at line 63 of file vector.cc.

References NS_LOG_FUNCTION.

Member Data Documentation

double ns3::Vector2D::x

x coordinate of vector

Definition at line 80 of file vector.h.

Referenced by ns3::CalculateDistance().

double ns3::Vector2D::y

y coordinate of vector

Definition at line 84 of file vector.h.

Referenced by ns3::CalculateDistance().


The documentation for this class was generated from the following files: