5 #ifndef _SPICA_BOUND3D_H_
6 #define _SPICA_BOUND3D_H_
34 double* tFar =
nullptr)
const;
45 inline Point3_<T> posMin()
const {
return posMin_; }
46 inline Point3_<T> posMax()
const {
return posMax_; }
53 static_assert(std::is_arithmetic<T>::value,
54 "Template type must be arithmetic!!");
63 #include "bounds3d_detail.h"
65 #endif // _SPICA_BOUND3D_H_
bool intersect(const Ray &ray, double *tNear=nullptr, double *tFar=nullptr) const
Intersection test.
Definition: bounds3d_detail.h:64
int maximumExtent() const
Maximum extent: return 0 -> x, 1 -> y, 2 -> z.
Definition: bounds3d_detail.h:56
Ray class.
Definition: ray.h:24
Definition: bounds3d.h:16