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.
◆ RayBoxIntersection() [1/2]
| kanzi::RayBoxIntersection::RayBoxIntersection |
( |
| ) |
|
|
inlineexplicit |
◆ RayBoxIntersection() [2/2]
| 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. |
◆ isHit
| bool kanzi::RayBoxIntersection::isHit |
Intersection flag. Whether a ray intersects with a box.
◆ distance
| float kanzi::RayBoxIntersection::distance |
The distance between the point of intersection and the origin of a ray.
◆ hitPoint
| 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: