Image Component Library (ICL)
|
utility structure that defines a hit between a ViewRay and SceneObjects More...
#include <Hit.h>
Public Member Functions | |
Hit () | |
constructor (initializes obj with 0 and dist with -1) | |
bool | operator< (const Hit &h) const |
for sorting by closest distance ot viewray origin | |
operator bool () const | |
can be used to check wheter there was a hit at all | |
Public Attributes | |
SceneObject * | obj |
hit SceneObject | |
Vec | pos |
exact position in the world where it was hit | |
float | dist |
distance to the originating viewrays origin | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const Hit &h) |
friendly implemented ostream operator ... |
utility structure that defines a hit between a ViewRay and SceneObjects
icl::geom::Hit::Hit | ( | ) | [inline] |
constructor (initializes obj with 0 and dist with -1)
icl::geom::Hit::operator bool | ( | ) | const [inline] |
can be used to check wheter there was a hit at all
bool icl::geom::Hit::operator< | ( | const Hit & | h | ) | const [inline] |
for sorting by closest distance ot viewray origin
std::ostream& operator<< | ( | std::ostream & | str, |
const Hit & | h | ||
) | [friend] |
friendly implemented ostream operator ...
float icl::geom::Hit::dist |
distance to the originating viewrays origin
exact position in the world where it was hit