|
CeresEngine 0.2.0
A game development framework
|
A structure that describes an intersection with a ray. More...
#include <CeresEngine/Math/Geometry.hpp>
Public Member Functions | |
| TRayIntersection ()=default | |
Creates a new false intersection. | |
| TRayIntersection (T distance) | |
Creates a new true intersection. | |
| operator bool () const noexcept | |
Public Attributes | |
| bool | intersects = false |
true if the intersection happened, false otherwise. | |
| T | distance = T(0.0) |
| The distance to intersection point. | |
A structure that describes an intersection with a ray.
|
default |
Creates a new false intersection.
|
inline |
Creates a new true intersection.
| distance | The distance to intersection point |
|
inlineexplicitnoexcept |
true if the intersection happened, false otherwise. | T Math::TRayIntersection< T >::distance = T(0.0) |
The distance to intersection point.
| bool Math::TRayIntersection< T >::intersects = false |
true if the intersection happened, false otherwise.