K3dIntersection Class Reference

#include <K3dIntersection.h>

Inheritance diagram for K3dIntersection:

K3dIntrLinSph K3dIntrLinePlane K3dDistance K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dIntersection (K3dGameData *_pGameData)
 ~K3dIntersection ()
bool RayPlane (const K3dRay &_rkRay, const K3dPlane &_rkPlane, K3dVector3Obj &_rkIPoint)
bool LineTriangle (const K3dRay &_rkEdge, const K3dTriangle &_rkTriangle)
bool RayTriangle (const K3dRay &_rkRay, const K3dTriangle &_rkTriangle, K3dVector3Obj &_rkIPoint)
K3dPlaneObjGetTrianglePlane ()
 Get triangle plane.
void SetTrianglePlane (K3dPlaneObj *_pTrianglePlane)
 Set triangle plane.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
K3dPlaneObjm_pTrianglePlane

Detailed Description

Definition at line 45 of file K3dIntersection.h.


Constructor & Destructor Documentation

K3dIntersection::K3dIntersection ( K3dGameData _pGameData  ) 

Definition at line 36 of file K3dIntersection.cpp.

References m_pGameData, m_pTrianglePlane, and K3dSceneData::SetIntersection().

K3dIntersection::~K3dIntersection (  ) 

Definition at line 45 of file K3dIntersection.cpp.


Member Function Documentation

bool K3dIntersection::RayPlane ( const K3dRay _rkRay,
const K3dPlane _rkPlane,
K3dVector3Obj _rkIPoint 
)

Definition at line 52 of file K3dIntersection.cpp.

References K3dVector3Work::Dot(), K3dRay::GetDirection(), K3dPlane::GetDistance(), K3dPlane::GetNormal(), K3dRay::GetOrigin(), K3dSceneData::GetVector3Work(), m_pGameData, K3dDistance::PointPlane(), K3dVector3::Reset(), and K3dMath::Sign().

Referenced by RayTriangle().

bool K3dIntersection::LineTriangle ( const K3dRay _rkEdge,
const K3dTriangle _rkTriangle 
)

Definition at line 110 of file K3dIntersection.cpp.

References K3dPlaneWork::CalcPlane(), K3dVector3Work::Dot(), K3dIntrLinePlane::GetIntrPoint(), K3dTriangle::GetNormal(), K3dSceneData::GetPlaneWork(), K3dSceneData::GetVector3Work(), K3dTriangle::GetVertex(), K3dIntrLinePlane::LinePlane(), m_pGameData, m_pTrianglePlane, K3dVector3Work::Normalize(), and K3dVector3::Reset().

bool K3dIntersection::RayTriangle ( const K3dRay _rkRay,
const K3dTriangle _rkTriangle,
K3dVector3Obj _rkIPoint 
)

Definition at line 169 of file K3dIntersection.cpp.

References K3dPlaneWork::CalcPlane(), K3dVector3Work::Dot(), K3dTriangle::GetNormal(), K3dSceneData::GetPlaneWork(), K3dSceneData::GetVector3Work(), K3dTriangle::GetVertex(), m_pGameData, m_pTrianglePlane, K3dVector3Work::Normalize(), RayPlane(), and K3dVector3::Reset().

K3dPlaneObj* K3dIntersection::GetTrianglePlane (  )  [inline]

Get triangle plane.

Definition at line 61 of file K3dIntersection.h.

References m_pTrianglePlane.

void K3dIntersection::SetTrianglePlane ( K3dPlaneObj _pTrianglePlane  )  [inline]

Set triangle plane.

Definition at line 67 of file K3dIntersection.h.

References m_pTrianglePlane.


Member Data Documentation

K3dGameData* K3dIntersection::m_pGameData [private]

Global game data, data centered game system.

Reimplemented from K3dIntrLinSph.

Reimplemented in K3dScene, and K3dMngSystem.

Definition at line 47 of file K3dIntersection.h.

Referenced by K3dIntersection(), LineTriangle(), RayPlane(), and RayTriangle().

K3dPlaneObj* K3dIntersection::m_pTrianglePlane [private]

Definition at line 48 of file K3dIntersection.h.

Referenced by GetTrianglePlane(), K3dIntersection(), LineTriangle(), RayTriangle(), and SetTrianglePlane().


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