Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CEntityRayPicker< GRID > Class Template Reference

List of all members.

Detailed Description

template<typename GRID>
class CEntityRayPicker< GRID >

Utility to check entity-ray intersection.

Grid sector class must have the following public members:

Parameters:
GRID  Grid class.


Static Public Methods

void putRay (GRID &grid, const D3DXVECTOR3 &origin, const D3DXVECTOR3 &dir)
 Puts ray into grid.

bool intersects (const CEntity &e, const GRID::TSector &sector)
 Checks entity-ray intersection.


Member Function Documentation

template<typename GRID>
bool CEntityRayPicker< GRID >::intersects const CEntity   e,
const GRID::TSector &    sector
[inline, static]
 

Checks entity-ray intersection.

Checks intersection of an entity with a ray that is in a given sector. If a sector does not contain a ray, no intersection is reported.

Parameters:
e  Entity.
sector  Sector.
Returns :
True if intersection occured, false otherwise.

template<typename GRID>
void CEntityRayPicker< GRID >::putRay GRID &    grid,
const D3DXVECTOR3 &    origin,
const D3DXVECTOR3 &    dir
[inline, static]
 

Puts ray into grid.

For all sectors that are touched by a ray, puts the ray into the sector. Does not modify untouched sectors.

Parameters:
grid  The grid.
origin  Origin of the ray.
dir  Direction of the ray (can be not unit vector).


Generated on Thu Dec 5 17:27:58 2002 for LT Game Jam Session by doxygen1.2.17