TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
VMAP::IntersectionCallBack< TValue > Class Template Reference

#include <VMapTools.h>

Public Member Functions

void operator() (const G3D::Ray &ray, const TValue *entity, bool pStopAtFirstHit, float &distance)
 

Public Attributes

TValue * closestEntity
 
G3D::Vector3 hitLocation
 
G3D::Vector3 hitNormal
 

Member Function Documentation

template<class TValue >
void VMAP::IntersectionCallBack< TValue >::operator() ( const G3D::Ray ray,
const TValue *  entity,
bool  pStopAtFirstHit,
float &  distance 
)
inline
44  {
45  entity->intersect(ray, distance, pStopAtFirstHit, hitLocation, hitNormal);
46  }
double distance(double x, double y)
Definition: g3dmath.h:731
G3D::Vector3 hitNormal
Definition: VMapTools.h:42
G3D::Vector3 hitLocation
Definition: VMapTools.h:41

Member Data Documentation

template<class TValue >
TValue* VMAP::IntersectionCallBack< TValue >::closestEntity
template<class TValue >
G3D::Vector3 VMAP::IntersectionCallBack< TValue >::hitLocation
template<class TValue >
G3D::Vector3 VMAP::IntersectionCallBack< TValue >::hitNormal

The documentation for this class was generated from the following file: