RayQueryResult Class Reference
A class that stores ray query intersection results. More...
#include <RayQuery.hh>
Public Member Functions | |
| operator bool () | |
| Returns false if result is not valid. | |
| operator bool () const | |
| Returns false if result is not valid. | |
Public Attributes | |
| double | distance = -1 |
| Intersection distance. | |
| unsigned int | objectId = 0 |
| Intersected object id. | |
| math::Vector3d | point |
| Intersection point in 3d space. | |
Detailed Description
A class that stores ray query intersection results.
Member Function Documentation
◆ operator bool() [1/2]
|
inline |
Returns false if result is not valid.
References RayQueryResult::distance.
◆ operator bool() [2/2]
|
inline |
Returns false if result is not valid.
References RayQueryResult::distance.
Member Data Documentation
◆ distance
| double distance = -1 |
Intersection distance.
Referenced by BaseRayQuery< T >::ClosestPoint(), RayQueryResult::operator bool(), and RayQueryResult::operator bool().
◆ objectId
| unsigned int objectId = 0 |
Intersected object id.
◆ point
| math::Vector3d point |
Intersection point in 3d space.
The documentation for this class was generated from the following file: