utility structure that defines a hit between a ViewRay and SceneObjects
More...
#include <Hit.h>
|
std::ostream & | operator<< (std::ostream &str, const Hit &h) |
| friendly implemented ostream operator ... More...
|
|
utility structure that defines a hit between a ViewRay and SceneObjects
◆ Hit()
constructor (initializes obj with 0 and dist with -1)
◆ operator bool()
icl::geom::Hit::operator bool |
( |
| ) |
const |
|
inline |
can be used to check wheter there was a hit at all
◆ operator<()
bool icl::geom::Hit::operator< |
( |
const Hit & |
h | ) |
const |
|
inline |
for sorting by closest distance ot viewray origin
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
str, |
|
|
const Hit & |
h |
|
) |
| |
|
friend |
friendly implemented ostream operator ...
◆ dist
float icl::geom::Hit::dist |
distance to the originating viewrays origin
◆ obj
◆ pos
exact position in the world where it was hit
The documentation for this struct was generated from the following file:
- /Users/alneuman/vm/icl/ICLGeom/src/ICLGeom/Hit.h