26 class CoordinateFrame;
61 explicit Box(
const Any& a);
148 return _edgeVector[a].
length();
199 int32& cullingPlaneIndex,
209 int32& cullingPlaneIndex = dummy,
210 const uint32 testMask = -1)
const;
void getBounds(class AABox &) const
Definition: Box.cpp:463
Vector3 axis(int a) const
Definition: Box.h:137
void getRandomSurfacePoint(Vector3 &P, Vector3 &N=Vector3::ignore()) const
Definition: Box.cpp:416
Vector3 extent() const
Definition: Box.h:151
static Box inf()
Definition: Box.cpp:458
void serialize(class BinaryOutput &b) const
Definition: Box.cpp:118
float volume() const
Definition: Box.cpp:217
static int32 dummy
Definition: Box.h:38
A rigid body RT (rotation-translation) transformation.
Definition: CoordinateFrame.h:59
float extent(int a) const
Definition: Box.h:146
Box()
Definition: Box.cpp:21
Vector3 center() const
Definition: Box.h:103
Dynamic 1D array tuned for performance.
Definition: Array.h:95
float _area
Definition: Box.h:49
static Vector3 & ignore()
Definition: Vector3.cpp:114
void init(const Vector3 &min, const Vector3 &max)
Definition: Box.cpp:149
Vector3 direction() const
Definition: Vector3.h:756
An arbitrary (oriented) 3D box, useful as a bounding box.
Definition: Box.h:35
float length() const
Definition: Vector3.h:751
T max(const T &x, const T &y)
Definition: g3dmath.h:320
Vector3 corner(int i) const
Definition: Box.cpp:189
void deserialize(class BinaryInput &b)
Definition: Box.cpp:129
Point3 _center
Definition: Box.h:47
float _volume
Definition: Box.h:51
T min(const T &x, const T &y)
Definition: g3dmath.h:305
Easy loading and saving of human-readable configuration files.
Definition: Any.h:184
bool culledBy(const Array< Plane > &plane, int32 &cullingPlaneIndex, const uint32 testMask, uint32 &childMask) const
#define debugAssert(exp)
Definition: debugAssert.h:160
bool contains(const Vector3 &point) const
Definition: Box.cpp:386
void getLocalFrame(CoordinateFrame &frame) const
Definition: Box.cpp:227
Vector3 randomInteriorPoint() const
Definition: Box.cpp:447
float length(float v)
Definition: vectorMath.h:208
bool isFinite() const
Definition: Box.h:228
Definition: BinaryOutput.h:52
float area() const
Definition: Box.cpp:222
int32_t int32
Definition: g3dmath.h:167
Vector3 _edgeVector[3]
Definition: Box.h:45
Any toAny() const
Definition: Box.cpp:80
uint32_t uint32
Definition: g3dmath.h:168
uint8 const P[]
Definition: AuthenticationPackets.cpp:225
CoordinateFrame localFrame() const
Definition: Box.cpp:241
bool isFinite(double x)
Definition: g3dmath.h:525
Box operator*(float f) const
Definition: Box.cpp:104
void getFaceCorners(int f, Vector3 &v0, Vector3 &v1, Vector3 &v2, Vector3 &v3) const
Definition: Box.cpp:248