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

Trait for finding intersections with a sphere. More...

#include <Bvh.h>

Inheritance diagram for BvhSphere:
BvhPrimitive

Public Member Functions

 BvhSphere ()=default
 
 BvhSphere (const Vector &center, const Float radius)
 
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 sphere.

Definition at line 122 of file Bvh.h.

Constructor & Destructor Documentation

◆ BvhSphere() [1/2]

BvhSphere::BvhSphere ( )
default

◆ BvhSphere() [2/2]

BvhSphere::BvhSphere ( const Vector center,
const Float  radius 
)
inline

Definition at line 131 of file Bvh.h.

Member Function Documentation

◆ getBBox()

INLINE Box BvhSphere::getBBox ( ) const
inline

Definition at line 152 of file Bvh.h.

◆ getCenter()

INLINE Vector BvhSphere::getCenter ( ) const
inline

Definition at line 156 of file Bvh.h.

◆ getIntersection()

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

Definition at line 138 of file Bvh.h.


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