81 return AABox(hi * f, lo * f);
83 return AABox(lo * f, hi * f);
88 return *
this * (1.0f / f);
164 return (lo + hi) * 0.5;
177 return hi[a] - lo[a];
225 int32& cullingPlaneIndex,
234 int32& cullingPlaneIndex = dummy,
235 const uint32 testMask = 0xFFFFFFFF)
const;
240 (other.
hi.
x <= hi.
x) &&
241 (other.
hi.
y <= hi.
y) &&
242 (other.
hi.
z <= hi.
z) &&
243 (other.
lo.
x >= lo.
x) &&
244 (other.
lo.
y >= lo.
y) &&
245 (other.
lo.
z >= lo.
z);
261 return 2.0f * (diag.
x * diag.
y + diag.
y * diag.
z + diag.
x * diag.
z);
267 return diag.
x * diag.
y * diag.
z;
290 if (H.
x < L.
x && H.
y < L.
y && H.
z < L.
z) {
305 return (lo == b.
lo) && (hi == b.
hi);
313 return !((lo == b.
lo) && (hi == b.
hi));
bool intersects(const AABox &other) const
Definition: AABox.cpp:175
void deserialize(class BinaryInput &b)
Definition: AABox.cpp:99
float x
Definition: Vector3.h:62
void merge(const AABox &a)
Definition: AABox.h:106
float fnan()
Definition: g3dmath.cpp:82
AABox operator*(float f) const
Definition: AABox.h:79
size_t hashCode() const
Definition: AABox.h:297
AABox intersect(const AABox &other) const
Definition: AABox.h:282
AABox(const Point3 &v)
Definition: AABox.h:53
bool contains(const AABox &other) const
Definition: AABox.h:238
Vector3 __fastcall max(const Vector3 &v) const
Definition: Vector3.h:794
bool isFinite() const
Definition: AABox.h:131
Definition: Intersect.h:27
float area() const
Definition: AABox.h:258
Definition: HashTrait.h:105
Point3 hi
Definition: AABox.h:43
Dynamic 1D array tuned for performance.
Definition: Array.h:95
AABox(const Point3 &low, const Point3 &high)
Definition: AABox.h:75
static const AABox & maxFinite()
Definition: AABox.cpp:67
const Point3 & low() const
Definition: AABox.h:136
static const AABox & inf()
Definition: AABox.cpp:81
Axis
Definition: Vector3.h:122
Any toAny() const
Definition: AABox.cpp:44
Vector3 __fastcall min(const Vector3 &v) const
Definition: Vector3.h:789
An arbitrary (oriented) 3D box, useful as a bounding box.
Definition: Box.h:35
float y
Definition: Vector3.h:62
void set(const Point3 &low, const Point3 &high)
Definition: AABox.h:93
Point3 randomSurfacePoint() const
Definition: AABox.cpp:129
bool operator!=(const AABox &b) const
Definition: AABox.h:309
static const Vector3 & zero()
Definition: Vector3.cpp:119
Easy loading and saving of human-readable configuration files.
Definition: Any.h:184
static const AABox & empty()
Definition: AABox.cpp:61
size_t hashCode() const
Definition: Vector3.cpp:155
bool culledBy(const Array< Plane > &plane, int32 &cullingPlaneIndex, const uint32 testMask, uint32 &childMask) const
AABox operator/(float f) const
Definition: AABox.h:87
Vector3 extent() const
Definition: AABox.h:181
#define debugAssert(exp)
Definition: debugAssert.h:160
void getBounds(AABox &out) const
Definition: AABox.h:331
Point3 center() const
Definition: AABox.h:163
void serialize(class BinaryOutput &b) const
Definition: AABox.cpp:93
Point3 randomInteriorPoint() const
Definition: AABox.cpp:167
bool isFinite() const
Definition: Vector3.h:652
static const AABox & zero()
Definition: AABox.cpp:87
static int dummy
Definition: AABox.h:37
static const AABox & large()
Definition: AABox.cpp:74
float extent(int a) const
Definition: AABox.h:172
float z
Definition: Vector3.h:62
AABox operator-(const Vector3 &v) const
Definition: AABox.h:324
AABox operator+(const Vector3 &v) const
Definition: AABox.h:317
Definition: BinaryOutput.h:52
AABox()
Definition: AABox.h:48
int32_t int32
Definition: g3dmath.h:167
bool contains(const Point3 &point) const
Definition: AABox.h:248
void split(const Vector3::Axis &axis, float location, AABox &low, AABox &high) const
Definition: AABox.cpp:112
static size_t hashCode(const G3D::AABox &key)
Definition: AABox.h:341
uint32_t uint32
Definition: g3dmath.h:168
const Point3 & high() const
Definition: AABox.h:141
bool operator==(const AABox &b) const
Definition: AABox.h:301
void merge(const Point3 &a)
Definition: AABox.h:116
bool isNaN() const
Definition: Vector3.cpp:83
Point3 lo
Definition: AABox.h:40
bool isEmpty() const
Definition: AABox.h:67
float volume() const
Definition: AABox.h:264
Point3 corner(int index) const
Definition: AABox.cpp:361