8#include <Common/primitive_type.h>
37 return maxVertex[axis] - minVertex[axis];
45 return 2.0_r * (xExtent * yExtent + yExtent * zExtent + zExtent * xExtent);
Definition KdtreeAABB.h:15
KdtreeAABB()
Definition KdtreeAABB.cpp:7
real getExtent(const int32 axis) const
Definition KdtreeAABB.h:31
bool trySplitAt(const int32 axis, const real splitPos, KdtreeAABB *const out_negativeAABB, KdtreeAABB *const out_positiveAABB) const
Definition KdtreeAABB.cpp:29
void getAABB(math::AABB3D *const out_aabb) const
Definition KdtreeAABB.cpp:81
real getSurfaceArea() const
Definition KdtreeAABB.h:40
void getMinVertex(real *const out_vector3f) const
Definition KdtreeAABB.cpp:53
bool isIntersectingVolume(const Ray &ray, real *const out_rayNearHitDist, real *const out_rayFarHitDist) const
Definition KdtreeAABB.cpp:19
void getMaxVertex(real *const out_vector3f) const
Definition KdtreeAABB.cpp:60
Represents a ray in space.
Definition Ray.h:21
const TVector3< T > & getMaxVertex() const
Get the corner vertex of the maximum (+++) octant.
Definition TAABB3D.ipp:152
const TVector3< T > & getMinVertex() const
Get the corner vertex of the minimum (—) octant.
Definition TAABB3D.ipp:146
T & y()
Definition TVector3.ipp:189
T & z()
Definition TVector3.ipp:195
T & x()
Definition TVector3.ipp:183
#define KDTREE_NUM_AXES
Definition kdtree_core.h:8
The root for all renderer implementations.
Definition EEngineProject.h:6