SPH
Classes | Functions
Bvh.inl.h File Reference
#include "objects/finders/Bvh.h"

Go to the source code of this file.

Classes

struct  BvhTraversal
 
struct  BvhBuildEntry
 

Functions

bool intersectBox (const Box &box, const Ray &ray, Float &t_min, Float &t_max)
 Finds intersections of ray with a box. More...
 

Function Documentation

◆ intersectBox()

bool intersectBox ( const Box box,
const Ray ray,
Float t_min,
Float t_max 
)
inline

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.