#include <Bvh.h>
Definition at line 10 of file Bvh.h.
◆ Ray() [1/2]
◆ Ray() [2/2]
Definition at line 22 of file Bvh.h.
◆ direction()
const Vector& Ray::direction |
( |
| ) |
const |
|
inline |
Definition at line 35 of file Bvh.h.
◆ origin()
const Vector& Ray::origin |
( |
| ) |
const |
|
inline |
Definition at line 31 of file Bvh.h.
◆ intersectBox
bool intersectBox |
( |
const Box & |
box, |
|
|
const Ray & |
ray, |
|
|
Float & |
t_min, |
|
|
Float & |
t_max |
|
) |
| |
|
friend |
Finds intersections of ray with a box.
There is always either zero or two intersections. If the ray intersects the box, the function returns true and the intersection distances (near and far distance) are returned as t_min and t_max.
Definition at line 16 of file Bvh.inl.h.
The documentation for this class was generated from the following file:
- /home/pavel/projects/astro/sph/src/core/objects/finders/Bvh.h