#include <K3dIntersection.h>
Inheritance diagram for K3dIntersection:
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) |
K3dPlaneObj * | GetTrianglePlane () |
Get triangle plane. | |
void | SetTrianglePlane (K3dPlaneObj *_pTrianglePlane) |
Set triangle plane. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
K3dPlaneObj * | m_pTrianglePlane |
Definition at line 45 of file K3dIntersection.h.
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.
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] |
void K3dIntersection::SetTrianglePlane | ( | K3dPlaneObj * | _pTrianglePlane | ) | [inline] |
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().