26 cBoundingBox(
double a_MinX,
double a_MaxX,
double a_MinY,
double a_MaxY,
double a_MinZ,
double a_MaxZ);
35 #ifdef TOLUA_EXPOSITION
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);
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc.
Represents two sets of coords, minimum and maximum for each direction.
double GetMinY(void) const
bool IsInside(Vector3d a_Point)
Returns true if the point is inside the bounding box.
void Move(double a_OffX, double a_OffY, double a_OffZ)
Moves the entire boundingbox by the specified offset.
double GetMinZ(void) const
double GetMaxY(void) const
bool DoesIntersect(const cBoundingBox &a_Other)
Returns true if the two bounding boxes intersect.
double GetMaxX(void) const
Vector3d GetMax(void) const
cBoundingBox(double a_MinX, double a_MaxX, double a_MinY, double a_MaxY, double a_MinZ, double a_MaxZ)
bool Intersect(const cBoundingBox &a_Other, cBoundingBox &a_Intersection) const
Calculates the intersection of the two bounding boxes; returns true if nonempty.
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...
double GetMinX(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 Union(const cBoundingBox &a_Other)
Returns the union of the two bounding boxes.
Vector3d GetMin(void) const
double GetMaxZ(void) const