26 cBoundingBox(
double a_MinX,
double a_MaxX,
double a_MinY,
double a_MaxY,
double a_MinZ,
double a_MaxZ);
35 #ifdef TOLUA_EXPOSITION // tolua isn't aware of implicitly generated copy constructors 40 void Move(
double a_OffX,
double a_OffY,
double a_OffZ);
46 void Expand(
double a_ExpandX,
double a_ExpandY,
double a_ExpandZ);
58 bool IsInside(
double a_X,
double a_Y,
double a_Z);
double GetMinX(void) const
bool IsInside(Vector3d a_Point)
Returns true if the point is inside the bounding box.
double GetMinY(void) const
void Expand(double a_ExpandX, double a_ExpandY, double a_ExpandZ)
Expands the bounding box by the specified amount in each direction (so the box becomes larger by 2 * ...
cBoundingBox(double a_MinX, double a_MaxX, double a_MinY, double a_MaxY, double a_MinZ, double a_MaxZ)
double GetMinZ(void) const
bool Intersect(const cBoundingBox &a_Other, cBoundingBox &a_Intersection) const
Calculates the intersection of the two bounding boxes; returns true if nonempty.
Represents two sets of coords, minimum and maximum for each direction.
bool CalcLineIntersection(Vector3d a_LinePoint1, Vector3d a_LinePoint2, double &a_LineCoeff, eBlockFace &a_Face) const
Returns true if this bounding box is intersected by the line specified by its two points Also calcula...
cBoundingBox Union(const cBoundingBox &a_Other)
Returns the union of the two bounding boxes.
void Move(double a_OffX, double a_OffY, double a_OffZ)
Moves the entire boundingbox by the specified offset.
Vector3d GetMin(void) const
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
double GetMaxY(void) const
double GetMaxX(void) const
Vector3d GetMax(void) const
double GetMaxZ(void) const
bool DoesIntersect(const cBoundingBox &a_Other)
Returns true if the two bounding boxes intersect.