Stores the result of an intersection between a box and a ray.
More...
#include <kanzi/core/math/ray.hpp>
|
float | distance |
| The distance between the point of intersection and the origin of a ray. More...
|
|
Vector3 | hitPoint |
| The point of intersection between a ray and a box in object space. More...
|
|
bool | isHit |
| Intersection flag. Whether a ray intersects with a box. More...
|
|
Stores the result of an intersection between a box and a ray.
kanzi::RayBoxIntersection::RayBoxIntersection |
( |
| ) |
|
|
inlineexplicit |
kanzi::RayBoxIntersection::RayBoxIntersection |
( |
bool |
hit, |
|
|
float |
dist, |
|
|
Vector3 |
point |
|
) |
| |
|
inlineexplicit |
Constructor.
- Parameters
-
hit | Intersection flag. If a ray intersects with a box, true, otherwise false. |
dist | The distance between the point of intersection and the origin of a ray. |
point | The point of intersection between a ray and a box. |
bool kanzi::RayBoxIntersection::isHit |
Intersection flag. Whether a ray intersects with a box.
float kanzi::RayBoxIntersection::distance |
The distance between the point of intersection and the origin of a ray.
Vector3 kanzi::RayBoxIntersection::hitPoint |
The point of intersection between a ray and a box in object space.
The documentation for this struct was generated from the following file: