Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Friends
icl::geom::Hit Struct Reference

utility structure that defines a hit between a ViewRay and SceneObjects More...

#include <Hit.h>

List of all members.

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

SceneObjectobj
 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 ...

Detailed Description

utility structure that defines a hit between a ViewRay and SceneObjects


Constructor & Destructor Documentation

icl::geom::Hit::Hit ( ) [inline]

constructor (initializes obj with 0 and dist with -1)


Member Function Documentation

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


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  str,
const Hit h 
) [friend]

friendly implemented ostream operator ...


Member Data Documentation

distance to the originating viewrays origin

exact position in the world where it was hit


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines