AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
VMAP::IntersectionCallBack< TValue > Class Template Reference

#include "VMapTools.h"

Public Member Functions

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

Public Attributes

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

Detailed Description

template<class TValue>
class VMAP::IntersectionCallBack< TValue >

Member Function Documentation

◆ operator()()

template<class TValue >
void VMAP::IntersectionCallBack< TValue >::operator() ( const G3D::Ray &  ray,
const TValue *  entity,
bool  StopAtFirstHit,
float &  distance 
)
inline
41 {
42 entity->intersect(ray, distance, StopAtFirstHit, hitLocation, hitNormal);
43 }
G3D::Vector3 hitLocation
Definition: VMapTools.h:37
G3D::Vector3 hitNormal
Definition: VMapTools.h:38

References VMAP::IntersectionCallBack< TValue >::hitLocation, and VMAP::IntersectionCallBack< TValue >::hitNormal.

Member Data Documentation

◆ closestEntity

template<class TValue >
TValue* VMAP::IntersectionCallBack< TValue >::closestEntity

◆ hitLocation

template<class TValue >
G3D::Vector3 VMAP::IntersectionCallBack< TValue >::hitLocation

◆ hitNormal

template<class TValue >
G3D::Vector3 VMAP::IntersectionCallBack< TValue >::hitNormal