40 #define AABB_STRING 64 60 inline void set (
const AABB& other) {
74 inline void setMins (
int x,
int y,
int z) {
77 inline void setMaxs (
int x,
int y,
int z) {
105 inline void set (
const AABB& trBox,
const Line& trLine) {
107 endBox.
shift(trLine.stop);
168 snprintf(str,
len,
"(%i, %i, %i) (%i, %i, %i)",
void setNegativeVolume()
Sets mins and maxs to their starting points before using addPoint.
#define VectorCopy(src, dest)
#define VectorSet(v, x, y, z)
const vec3_t & getMins() const
bool doesIntersect(const AABB &other) const
Checks if the aabb touches or intersects with the given aabb.
void setFromLittleFloat(const AABB &other)
void getDiagonal(vec3_t diagonal) const
void rotateAround(const vec3_t origin, const vec3_t angles)
Rotates bounding box around given origin point; note that it will expand the box unless all angles ar...
void asIntString(char *str, size_t len)
Prints a representation of the box.
void setMaxs(const vec3_t maxi)
bool contains(const AABB &other) const
void expandXY(const float byVal)
expand the box in four directions, but clip them to the maximum boundaries
#define VectorScale(in, scale, out)
const float MWW
Axis-aligned bounding box.
void clipToWorld()
clip the box to the maximum boundaries
Defined CONSTANTS (Macros are elsewhere)
Byte order functions header.
bool canBeHitBy(const Line &line) const
Checks if the given line has a chance to hit our box.
void shift(const vec3_t shiftVec)
shove the whole box by the given vector
void getCenter(vec3_t center) const
Calculates the center of the bounding box.
void setMaxs(int x, int y, int z)
#define VectorAdd(a, b, dest)
void setMins(const vec3_t mini)
void setMins(int x, int y, int z)
QGL_EXTERN GLuint GLchar GLuint * len
void add(const vec3_t point)
If the point is outside the box, expand the box to accommodate it.
void expand(const float byVal)
expand the box in all directions, but clip them to the maximum boundaries
#define MAX_WORLD_WIDTH
-MAX_WORLD_WIDTH up tp +MAX_WORLD_WIDTH
const vec3_t & getMaxs() const
bool contains(const vec3_t point) const
Cross-platform type definitions.
#define VectorSubtract(a, b, dest)
A simple line between two points.