SPH
Public Member Functions | Public Attributes | List of all members
IntersectionInfo Struct Reference

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 BvhPrimitiveobject = nullptr
 Object hit by the ray, or nullptr if nothing has been hit. More...
 

Detailed Description

Holds intormation about intersection.

Definition at line 53 of file Bvh.h.

Member Function Documentation

◆ hit()

INLINE Vector IntersectionInfo::hit ( const Ray ray) const
inline

Definition at line 60 of file Bvh.h.

◆ operator<()

INLINE bool IntersectionInfo::operator< ( const IntersectionInfo other) const
inline

Sort by intersection distance.

Definition at line 65 of file Bvh.h.

Member Data Documentation

◆ object

const BvhPrimitive* IntersectionInfo::object = nullptr

Object hit by the ray, or nullptr if nothing has been hit.

Definition at line 58 of file Bvh.h.

◆ t

Float IntersectionInfo::t

Distance of the hit in units of ray.direction().

Definition at line 55 of file Bvh.h.


The documentation for this struct was generated from the following file: