#include <rectangle.h>
Public Member Functions | |
Rectangle (double _xMin, double _xMax, double _yMin, double _yMax) | |
Rectangle () | |
bool | IsInside (const Vector &position) const |
Side | GetClosestSide (const Vector &position) const |
Vector | CalculateIntersection (const Vector ¤t, const Vector &speed) const |
ns3::Rectangle::Rectangle | ( | double | _xMin, | |
double | _xMax, | |||
double | _yMin, | |||
double | _yMax | |||
) |
_xMin | x coordinates of left boundary. | |
_xMax | x coordinates of right boundary. | |
_yMin | y coordinates of bottom boundary. | |
_yMax | y coordinates of top boundary. |
ns3::Rectangle::Rectangle | ( | ) |
Create a zero-sized rectangle located at coordinates (0.0,0.0)
current | the current position | |
speed | the current speed |
Side ns3::Rectangle::GetClosestSide | ( | const Vector & | position | ) | const |
position | the position to test. |
bool ns3::Rectangle::IsInside | ( | const Vector & | position | ) | const |
position | the position to test. |