a 3d box More...
#include <box.h>
Public Types | |
enum | Side { RIGHT, LEFT, TOP, BOTTOM, UP, DOWN } |
Public Member Functions | |
Box (double _xMin, double _xMax, double _yMin, double _yMax, double _zMin, double _zMax) | |
Box () | |
Create a zero-sized box located at coordinates (0.0,0.0,0.0) More... | |
Vector | CalculateIntersection (const Vector ¤t, const Vector &speed) const |
Side | GetClosestSide (const Vector &position) const |
bool | IsInside (const Vector &position) const |
Public Attributes | |
double | xMax |
double | xMin |
double | yMax |
double | yMin |
double | zMax |
double | zMin |
enum ns3::Box::Side |
ns3::Box::Box | ( | double | _xMin, |
double | _xMax, | ||
double | _yMin, | ||
double | _yMax, | ||
double | _zMin, | ||
double | _zMax | ||
) |
ns3::Box::Box | ( | ) |
current | the current position |
speed | the current speed |
This method assumes that the current position is located inside the cube and checks for this with an assert. This method compares only the x and y coordinates of the input position and speed. It ignores the z coordinate.
Definition at line 110 of file box.cc.
References IsInside(), NS_ASSERT, ns3::Vector3D::x, xMax, xMin, ns3::Vector3D::y, yMax, and yMin.
position | the position to test. |
This method compares the x, y, and z coordinates of the input position.
Definition at line 63 of file box.cc.
References BOTTOM, DOWN, LEFT, RIGHT, TOP, UP, ns3::Vector3D::x, xMax, ns3::Vector3D::y, yMax, ns3::Vector3D::z, and zMax.
bool ns3::Box::IsInside | ( | const Vector & | position | ) | const |
position | the position to test. |
This method compares the x, y, and z coordinates of the input position.
Definition at line 54 of file box.cc.
References ns3::Vector3D::x, xMax, xMin, ns3::Vector3D::y, yMax, yMin, ns3::Vector3D::z, zMax, and zMin.
Referenced by CalculateIntersection(), ns3::GaussMarkovMobilityModel::DoWalk(), and ns3::Building::IsInside().
double ns3::Box::xMax |
Definition at line 91 of file box.h.
Referenced by AreOverlapping(), CalculateIntersection(), FemtocellBlockAllocator::Create(), ns3::GaussMarkovMobilityModel::DoWalk(), FemtocellBlockAllocator::FemtocellBlockAllocator(), GetClosestSide(), ns3::RandomRoomPositionAllocator::GetNext(), ns3::SameRoomPositionAllocator::GetNext(), ns3::Building::GetRoomX(), IsInside(), main(), ns3::operator<<(), ns3::operator>>(), PrintGnuplottableBuildingListToFile(), and ns3::ConstantVelocityHelper::UpdateWithBounds().
double ns3::Box::xMin |
Definition at line 89 of file box.h.
Referenced by AreOverlapping(), CalculateIntersection(), FemtocellBlockAllocator::Create(), ns3::GaussMarkovMobilityModel::DoWalk(), FemtocellBlockAllocator::FemtocellBlockAllocator(), ns3::RandomRoomPositionAllocator::GetNext(), ns3::SameRoomPositionAllocator::GetNext(), ns3::Building::GetRoomX(), IsInside(), main(), ns3::operator<<(), ns3::operator>>(), PrintGnuplottableBuildingListToFile(), and ns3::ConstantVelocityHelper::UpdateWithBounds().
double ns3::Box::yMax |
Definition at line 95 of file box.h.
Referenced by AreOverlapping(), CalculateIntersection(), FemtocellBlockAllocator::Create(), ns3::GaussMarkovMobilityModel::DoWalk(), FemtocellBlockAllocator::FemtocellBlockAllocator(), GetClosestSide(), ns3::RandomRoomPositionAllocator::GetNext(), ns3::SameRoomPositionAllocator::GetNext(), ns3::Building::GetRoomY(), IsInside(), main(), ns3::operator<<(), ns3::operator>>(), PrintGnuplottableBuildingListToFile(), and ns3::ConstantVelocityHelper::UpdateWithBounds().
double ns3::Box::yMin |
Definition at line 93 of file box.h.
Referenced by AreOverlapping(), CalculateIntersection(), FemtocellBlockAllocator::Create(), ns3::GaussMarkovMobilityModel::DoWalk(), FemtocellBlockAllocator::FemtocellBlockAllocator(), ns3::RandomRoomPositionAllocator::GetNext(), ns3::SameRoomPositionAllocator::GetNext(), ns3::Building::GetRoomY(), IsInside(), main(), ns3::operator<<(), ns3::operator>>(), PrintGnuplottableBuildingListToFile(), and ns3::ConstantVelocityHelper::UpdateWithBounds().
double ns3::Box::zMax |
Definition at line 99 of file box.h.
Referenced by ns3::GaussMarkovMobilityModel::DoWalk(), GetClosestSide(), ns3::Building::GetFloor(), ns3::RandomRoomPositionAllocator::GetNext(), ns3::SameRoomPositionAllocator::GetNext(), IsInside(), main(), ns3::operator<<(), ns3::operator>>(), and ns3::ConstantVelocityHelper::UpdateWithBounds().
double ns3::Box::zMin |
Definition at line 97 of file box.h.
Referenced by ns3::GaussMarkovMobilityModel::DoWalk(), ns3::Building::GetFloor(), ns3::RandomRoomPositionAllocator::GetNext(), ns3::SameRoomPositionAllocator::GetNext(), IsInside(), main(), ns3::operator<<(), ns3::operator>>(), and ns3::ConstantVelocityHelper::UpdateWithBounds().