SPH
Public Member Functions | List of all members
BvhBox Class Reference

Trait for finding intersections with a axis-aligned box. More...

#include <Bvh.h>

Inheritance diagram for BvhBox:
BvhPrimitive

Public Member Functions

 BvhBox (const Box &box)
 
INLINE bool getIntersection (const Ray &ray, IntersectionInfo &intersection) const
 
INLINE Box getBBox () const
 
INLINE Vector getCenter () const
 

Additional Inherited Members

- Public Attributes inherited from BvhPrimitive
Size userData = Size(-1)
 Generic user data, can be used to store additional information to the primitives. More...
 

Detailed Description

Trait for finding intersections with a axis-aligned box.

Definition at line 162 of file Bvh.h.

Constructor & Destructor Documentation

◆ BvhBox()

BvhBox::BvhBox ( const Box box)
inlineexplicit

Definition at line 167 of file Bvh.h.

Member Function Documentation

◆ getBBox()

INLINE Box BvhBox::getBBox ( ) const
inline

Definition at line 182 of file Bvh.h.

◆ getCenter()

INLINE Vector BvhBox::getCenter ( ) const
inline

Definition at line 186 of file Bvh.h.

◆ getIntersection()

INLINE bool BvhBox::getIntersection ( const Ray ray,
IntersectionInfo intersection 
) const
inline

Definition at line 170 of file Bvh.h.


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