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. More... | |
operator bool () const | |
Returns false if result is not valid. More... | |
Public Attributes | |
double | distance = -1 |
Intersection distance. More... | |
unsigned int | objectId = 0 |
Intersected object id. More... | |
math::Vector3d | point |
Intersection point in 3d space. More... | |
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< OgreObject >::ClosestPoint(), 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: