AABB

AABB consists of a position, a size, and several utility functions. It is typically used for fast overlap tests.

Members

Functions

encloses
bool encloses(AABB p_aabb)
Undocumented in source. Be warned that the author may not have intended to support it.
expand
AABB expand(Vector3 p_vector)
Undocumented in source. Be warned that the author may not have intended to support it.
expandTo
void expandTo(Vector3 p_vector)
Undocumented in source. Be warned that the author may not have intended to support it.
getArea
real_t getArea()
Undocumented in source. Be warned that the author may not have intended to support it.
getEdge
void getEdge(int p_edge, Vector3 r_from, Vector3 r_to)
Undocumented in source. Be warned that the author may not have intended to support it.
getEndpoint
Vector3 getEndpoint(int p_point)
Undocumented in source. Be warned that the author may not have intended to support it.
getLongestAxis
Vector3 getLongestAxis()
Undocumented in source. Be warned that the author may not have intended to support it.
getLongestAxisIndex
int getLongestAxisIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
getLongestAxisSize
real_t getLongestAxisSize()
Undocumented in source. Be warned that the author may not have intended to support it.
getShortestAxis
Vector3 getShortestAxis()
Undocumented in source. Be warned that the author may not have intended to support it.
getShortestAxisIndex
int getShortestAxisIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
getShortestAxisSize
real_t getShortestAxisSize()
Undocumented in source. Be warned that the author may not have intended to support it.
getSupport
Vector3 getSupport(Vector3 p_normal)
Undocumented in source. Be warned that the author may not have intended to support it.
grow
AABB grow(real_t p_by)
Undocumented in source. Be warned that the author may not have intended to support it.
growBy
void growBy(real_t p_amount)
Undocumented in source. Be warned that the author may not have intended to support it.
hasNoArea
bool hasNoArea()
Undocumented in source. Be warned that the author may not have intended to support it.
hasNoSurface
bool hasNoSurface()
Undocumented in source. Be warned that the author may not have intended to support it.
hasPoint
bool hasPoint(Vector3 p_point)
Undocumented in source. Be warned that the author may not have intended to support it.
intersection
AABB intersection(AABB p_aabb)
Undocumented in source. Be warned that the author may not have intended to support it.
intersects
bool intersects(AABB p_aabb)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsConvexShape
bool intersectsConvexShape(Plane[] p_planes)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsInclusive
bool intersectsInclusive(AABB p_aabb)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsPlane
bool intersectsPlane(Plane p_plane)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsRay
bool intersectsRay(Vector3 p_from, Vector3 p_dir, Vector3* r_clip, Vector3* r_normal)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsSegment
bool intersectsSegment(Vector3 p_from, Vector3 p_to, Vector3* r_clip, Vector3* r_normal)
Undocumented in source. Be warned that the author may not have intended to support it.
merge
AABB merge(AABB p_with)
Undocumented in source. Be warned that the author may not have intended to support it.
mergeWith
void mergeWith(AABB p_aabb)
Undocumented in source. Be warned that the author may not have intended to support it.
projectRangeInPlane
void projectRangeInPlane(Plane p_plane, real_t r_min, real_t r_max)
Undocumented in source. Be warned that the author may not have intended to support it.
smitsIntersectRay
bool smitsIntersectRay(Vector3 from, Vector3 dir, real_t t0, real_t t1)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

pos
Vector3 pos;
Undocumented in source.
size
Vector3 size;
Undocumented in source.

Meta