equal
deleted
inserted
replaced
20 #ifndef CONSTANT_VELOCITY_HELPER_H |
20 #ifndef CONSTANT_VELOCITY_HELPER_H |
21 #define CONSTANT_VELOCITY_HELPER_H |
21 #define CONSTANT_VELOCITY_HELPER_H |
22 |
22 |
23 #include "ns3/nstime.h" |
23 #include "ns3/nstime.h" |
24 #include "ns3/vector.h" |
24 #include "ns3/vector.h" |
|
25 #include "ns3/box.h" |
25 |
26 |
26 namespace ns3 { |
27 namespace ns3 { |
27 |
28 |
28 class Rectangle; |
29 class Rectangle; |
29 |
30 |
41 void SetVelocity (const Vector &vel); |
42 void SetVelocity (const Vector &vel); |
42 void Pause (void); |
43 void Pause (void); |
43 void Unpause (void); |
44 void Unpause (void); |
44 |
45 |
45 void UpdateWithBounds (const Rectangle &rectangle) const; |
46 void UpdateWithBounds (const Rectangle &rectangle) const; |
|
47 void UpdateWithBounds (const Box &bounds) const; |
46 void Update (void) const; |
48 void Update (void) const; |
47 private: |
49 private: |
48 mutable Time m_lastUpdate; |
50 mutable Time m_lastUpdate; |
49 mutable Vector m_position; |
51 mutable Vector m_position; |
50 Vector m_velocity; |
52 Vector m_velocity; |