#include <K3dFaceWork.h>
Inheritance diagram for K3dFaceWork:
Public Member Functions | |
K3dFaceWork (K3dGameData *_pGameData) | |
~K3dFaceWork () | |
void | CalcCentre () |
Calculate face centre. | |
void | CalcNormal () |
Calculate face normal vector. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. |
Definition at line 40 of file K3dFaceWork.h.
K3dFaceWork::K3dFaceWork | ( | K3dGameData * | _pGameData | ) |
K3dFaceWork::~K3dFaceWork | ( | ) |
Definition at line 41 of file K3dFaceWork.cpp.
void K3dFaceWork::CalcCentre | ( | ) |
Calculate face centre.
Definition at line 46 of file K3dFaceWork.cpp.
References K3dFace::GetCentre(), K3dFace::GetVertexArray(), K3dVector3::GetX(), K3dVector3::GetY(), and K3dVector3::GetZ().
void K3dFaceWork::CalcNormal | ( | ) |
Calculate face normal vector.
Definition at line 70 of file K3dFaceWork.cpp.
References K3dFace::GetNormal(), K3dSceneData::GetVector3Work(), K3dFace::GetVertexArray(), m_pGameData, and K3dVector3Work::Normal().
K3dGameData* K3dFaceWork::m_pGameData [private] |
Global game data, data centered game system.
Definition at line 42 of file K3dFaceWork.h.
Referenced by CalcNormal(), and K3dFaceWork().