#include <K3dIntrLinSph.h>
Inheritance diagram for K3dIntrLinSph:
Public Member Functions | |
K3dIntrLinSph (K3dGameData *_pGameData) | |
~K3dIntrLinSph (void) | |
bool | RaySphere (const K3dRay &_rkRay, const K3dSphere &_rkSphere) |
Test intersection between ray and sphere. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. |
Definition at line 41 of file K3dIntrLinSph.h.
K3dIntrLinSph::K3dIntrLinSph | ( | K3dGameData * | _pGameData | ) |
K3dIntrLinSph::~K3dIntrLinSph | ( | void | ) |
Definition at line 41 of file K3dIntrLinSph.cpp.
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().
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().