![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <BoundingBox.h>
Public Member Functions | |
BoundingBox () noexcept | |
BoundingBox (const OBB &obb) noexcept | |
BoundingBox (const BoundingSphere &bSphere) noexcept | |
BoundingBox (vec3< F32 > min, vec3< F32 > max) noexcept | |
BoundingBox (const vector< vec3< F32 > > &points) noexcept | |
BoundingBox (const std::array< vec3< F32 >, 8 > &points) noexcept | |
BoundingBox (F32 minX, F32 minY, F32 minZ, F32 maxX, F32 maxY, F32 maxZ) noexcept | |
BoundingBox (const BoundingBox &b) noexcept | |
BoundingBox & | operator= (const BoundingBox &b) noexcept |
bool | containsPoint (const vec3< F32 > &point) const noexcept |
bool | containsBox (const BoundingBox &AABB2) const noexcept |
bool | containsSphere (const BoundingSphere &bSphere) const noexcept |
bool | collision (const BoundingBox &AABB2) const noexcept |
bool | collision (const BoundingSphere &bSphere) const noexcept |
bool | compare (const BoundingBox &bb) const noexcept |
bool | operator== (const BoundingBox &B) const noexcept |
bool | operator!= (const BoundingBox &B) const noexcept |
RayResult | intersect (const Ray &r, F32 t0, F32 t1) const noexcept |
Optimized method. | |
void | createFromPoints (const vector< vec3< F32 > > &points) noexcept |
void | createFromPoints (const std::array< vec3< F32 >, 8 > &points) noexcept |
void | createFromSphere (const BoundingSphere &bSphere) noexcept |
void | createFromSphere (const vec3< F32 > ¢er, F32 radius) noexcept |
void | createFromCenterAndSize (const vec3< F32 > ¢er, const vec3< F32 > &size) noexcept |
void | createFromOBB (const OBB &obb) noexcept |
void | add (const vec3< F32 > &v) noexcept |
void | add (const BoundingBox &bb) noexcept |
void | translate (const vec3< F32 > &v) noexcept |
void | multiply (F32 factor) noexcept |
void | multiply (const vec3< F32 > &v) noexcept |
void | multiplyMax (const vec3< F32 > &v) noexcept |
void | multiplyMin (const vec3< F32 > &v) noexcept |
void | transform (vec3< F32 > initialMin, vec3< F32 > initialMax, const mat4< F32 > &mat) noexcept |
void | transform (const BoundingBox &initialBoundingBox, const mat4< F32 > &mat) noexcept |
void | transform (const mat4< F32 > &mat) noexcept |
const vec3< F32 > & | getMin () const noexcept |
const vec3< F32 > & | getMax () const noexcept |
vec3< F32 > | getCenter () const noexcept |
vec3< F32 > | getExtent () const noexcept |
vec3< F32 > | getHalfExtent () const noexcept |
F32 | getWidth () const noexcept |
F32 | getHeight () const noexcept |
F32 | getDepth () const noexcept |
void | set (const BoundingBox &bb) noexcept |
void | set (const vec3< F32 > &min, const vec3< F32 > &max) noexcept |
void | setMin (const vec3< F32 > &min) noexcept |
void | setMax (const vec3< F32 > &max) noexcept |
void | set (F32 min, F32 max) noexcept |
void | set (F32 minX, F32 minY, F32 minZ, F32 maxX, F32 maxY, F32 maxZ) noexcept |
void | setMin (F32 min) noexcept |
void | setMin (F32 minX, F32 minY, F32 minZ) noexcept |
void | setMax (F32 max) noexcept |
void | setMax (F32 maxX, F32 maxY, F32 maxZ) noexcept |
void | reset () noexcept |
vec3< F32 > | cornerPoint (U8 cornerIndex) const noexcept |
std::array< vec3< F32 >, 8 > | getPoints () const noexcept |
vec3< F32 > | nearestPoint (const vec3< F32 > &pos) const noexcept |
vec3< F32 > | getPVertex (const vec3< F32 > &normal) const noexcept |
vec3< F32 > | getNVertex (const vec3< F32 > &normal) const noexcept |
Private Attributes | |
vec3< F32 > | _min |
vec3< F32 > | _max |
Friends | |
class | Attorney::BoundingBoxEditor |
Definition at line 47 of file BoundingBox.h.
|
noexcept |
Definition at line 9 of file BoundingBox.cpp.
|
explicitnoexcept |
Definition at line 38 of file BoundingBox.cpp.
|
explicitnoexcept |
Definition at line 44 of file BoundingBox.cpp.
Definition at line 15 of file BoundingBox.cpp.
Definition at line 27 of file BoundingBox.cpp.
Definition at line 33 of file BoundingBox.cpp.
|
explicitnoexcept |
Definition at line 21 of file BoundingBox.cpp.
|
noexcept |
Definition at line 50 of file BoundingBox.cpp.
|
inlinenoexcept |
Definition at line 96 of file BoundingBox.inl.
Definition at line 72 of file BoundingBox.inl.
|
noexcept |
Definition at line 96 of file BoundingBox.cpp.
|
noexcept |
Definition at line 107 of file BoundingBox.cpp.
|
inlinenoexcept |
Definition at line 42 of file BoundingBox.inl.
|
noexcept |
Definition at line 80 of file BoundingBox.cpp.
Definition at line 37 of file BoundingBox.inl.
|
noexcept |
Definition at line 84 of file BoundingBox.cpp.
Definition at line 227 of file BoundingBox.inl.
|
noexcept |
Definition at line 65 of file BoundingBox.cpp.
|
noexcept |
Definition at line 71 of file BoundingBox.cpp.
|
inlinenoexcept |
Definition at line 61 of file BoundingBox.inl.
Definition at line 55 of file BoundingBox.inl.
|
noexcept |
Definition at line 61 of file BoundingBox.cpp.
|
inlinenoexcept |
Definition at line 67 of file BoundingBox.inl.
Definition at line 145 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 175 of file BoundingBox.inl.
Definition at line 154 of file BoundingBox.inl.
Definition at line 158 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 171 of file BoundingBox.inl.
Definition at line 141 of file BoundingBox.inl.
Definition at line 137 of file BoundingBox.inl.
Definition at line 265 of file BoundingBox.inl.
Definition at line 241 of file BoundingBox.inl.
Definition at line 259 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 167 of file BoundingBox.inl.
Optimized method.
Optimized method: http://www.cs.utah.edu/~awilliam/box/box.pdf.
Definition at line 125 of file BoundingBox.cpp.
Definition at line 116 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 111 of file BoundingBox.inl.
Definition at line 125 of file BoundingBox.inl.
Definition at line 131 of file BoundingBox.inl.
Definition at line 255 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 51 of file BoundingBox.inl.
|
noexcept |
Definition at line 55 of file BoundingBox.cpp.
|
inlinenoexcept |
Definition at line 47 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 222 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 187 of file BoundingBox.inl.
Definition at line 217 of file BoundingBox.inl.
Definition at line 191 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 196 of file BoundingBox.inl.
Definition at line 183 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 209 of file BoundingBox.inl.
Definition at line 213 of file BoundingBox.inl.
Definition at line 179 of file BoundingBox.inl.
|
inlinenoexcept |
Definition at line 201 of file BoundingBox.inl.
Definition at line 205 of file BoundingBox.inl.
|
noexcept |
Definition at line 182 of file BoundingBox.cpp.
Definition at line 178 of file BoundingBox.cpp.
|
noexcept |
Definition at line 186 of file BoundingBox.cpp.
Definition at line 106 of file BoundingBox.inl.
|
friend |
Definition at line 48 of file BoundingBox.h.
Definition at line 132 of file BoundingBox.h.
Definition at line 132 of file BoundingBox.h.