K3dIntrLinSph Class Reference

#include <K3dIntrLinSph.h>

Inheritance diagram for K3dIntrLinSph:

K3dIntrLinePlane K3dDistance K3dIntersection K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dIntrLinSph (K3dGameData *_pGameData)
 ~K3dIntrLinSph (void)
bool RaySphere (const K3dRay &_rkRay, const K3dSphere &_rkSphere)
 Test intersection between ray and sphere.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.

Detailed Description

Definition at line 41 of file K3dIntrLinSph.h.


Constructor & Destructor Documentation

K3dIntrLinSph::K3dIntrLinSph ( K3dGameData _pGameData  ) 

Definition at line 35 of file K3dIntrLinSph.cpp.

References m_pGameData.

K3dIntrLinSph::~K3dIntrLinSph ( void   ) 

Definition at line 41 of file K3dIntrLinSph.cpp.


Member Function Documentation

bool K3dIntrLinSph::RaySphere ( const K3dRay _rkRay,
const K3dSphere _rkSphere 
)

Test intersection between ray and sphere.

Definition at line 46 of file K3dIntrLinSph.cpp.

References K3dSphere::GetPosition(), K3dSphere::GetRadius(), and K3dDistance::SqrPointRay().

Referenced by K3dObjectWork::GetIntersection().


Member Data Documentation

K3dGameData* K3dIntrLinSph::m_pGameData [private]

Global game data, data centered game system.

Reimplemented from K3dIntrLinePlane.

Reimplemented in K3dIntersection, K3dScene, and K3dMngSystem.

Definition at line 43 of file K3dIntrLinSph.h.

Referenced by K3dIntrLinSph().


The documentation for this class was generated from the following files:
Generated on Thu Aug 16 23:53:32 2007 for K3dEngine by  doxygen 1.5.0