SPH
|
Holds intormation about intersection. More...
#include <Bvh.h>
Public Member Functions | |
INLINE Vector | hit (const Ray &ray) const |
INLINE bool | operator< (const IntersectionInfo &other) const |
Sort by intersection distance. More... | |
Public Attributes | |
Float | t |
Distance of the hit in units of ray.direction(). More... | |
const BvhPrimitive * | object = nullptr |
Object hit by the ray, or nullptr if nothing has been hit. More... | |
|
inline |
const BvhPrimitive* IntersectionInfo::object = nullptr |
Float IntersectionInfo::t |