Output class for intersection handling methods.
More...
#include <IntersectionHandlingResult.h>
|
glm::dvec3 | intersectionPoint |
| True if the ray can continue after intersection, False otherwise.
|
|
bool | canContinue |
|
Output class for intersection handling methods.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
◆ IntersectionHandlingResult()
IntersectionHandlingResult::IntersectionHandlingResult |
( |
glm::dvec3 |
intersectionPoint = glm::dvec3(0,0,0) , |
|
|
bool |
canContinue = false |
|
) |
| |
|
inline |
Build an IntersectionHandlingResult.
- Parameters
-
intersectionPoint | Specify the intersection point |
canContinue | Specify if the ray can continue after intersection or not |
◆ canRayContinue()
bool IntersectionHandlingResult::canRayContinue |
( |
| ) |
|
|
inline |
Check whether the ray can continue after intersection or not.
- Returns
- True if the ray can continue after intersection, False if not
◆ getIntersectionPoint()
glm::dvec3 IntersectionHandlingResult::getIntersectionPoint |
( |
| ) |
|
|
inline |
Obtain the intersection point.
- Returns
- Intersection point
◆ serialize()
template<typename Archive >
void IntersectionHandlingResult::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inlineprivate |
Serialize an IntersectionHandlingResult to a stream of bytes.
- Template Parameters
-
- Parameters
-
ar | Specific rendering for the stream of bytes |
version | Version number for the intersection handling result |
The documentation for this class was generated from the following file: