47 Hit():obj(0),dist(-1){}
62 operator bool()
const {
return obj; }
66 return (h ? (
str <<
"Hit(obj=" << (
void*) h.
obj <<
", dist=" << h.
dist 68 : (
str <<
"Hit(NULL)"));
undocument this line if you encounter any issues!
Definition: Any.h:37
float dist
distance to the originating viewrays origin
Definition: Hit.h:56
#define ICLGeom_API
Definition: CompatMacros.h:179
Hit()
constructor (initializes obj with 0 and dist with -1)
Definition: Hit.h:47
friend std::ostream & operator<<(std::ostream &str, const Hit &h)
friendly implemented ostream operator ...
Definition: Hit.h:65
utility structure that defines a hit between a ViewRay and SceneObjects
Definition: Hit.h:45
SceneObject * obj
hit SceneObject
Definition: Hit.h:50
std::string str(const T &t)
convert a data type into a string using an std::ostringstream instance
Definition: StringUtils.h:136
FixedMatrix< T, ROWS, COLS > transp() const
returns matrix's transposed
Definition: FixedMatrix.h:728
Vec pos
exact position in the world where it was hit
Definition: Hit.h:53
bool operator<(const Hit &h) const
for sorting by closest distance ot viewray origin
Definition: Hit.h:59
The SceneObject class defines visible objects in scenes or scene graph nodes.
Definition: SceneObject.h:140