#include <K3dIntrLinePlane.h>
Inheritance diagram for K3dIntrLinePlane:
Public Member Functions | |
K3dIntrLinePlane (K3dGameData *_pGameData) | |
~K3dIntrLinePlane () | |
bool | LinePlane (const K3dRay &_rkLine, const K3dPlane &_rkPlane) |
Find the point where a line intersect a plane. | |
K3dVector3Obj & | GetIntrPoint () |
Get intersection point. | |
float & | GetDistanceOrigin () |
Get distance between plane and edge origin. | |
const float & | GetDistanceOrigin () const |
float & | GetDistanceDirection () |
Get distance between plane and edge direction. | |
const float & | GetDistanceDirection () const |
ELinePlanePos & | GetLinePlanePos () |
Get line position oposit plane after intersection. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
K3dVector3Obj | m_kIntrPoint |
Intersection point if intersection true. | |
float | m_fDistanceOrigin |
Distance between plane and edge origin. | |
float | m_fDistanceDirection |
Distance between plane and edge origin. | |
ELinePlanePos | m_eLinePos |
Line position oposit plane after intersection. |
Definition at line 49 of file K3dIntrLinePlane.h.
K3dIntrLinePlane::K3dIntrLinePlane | ( | K3dGameData * | _pGameData | ) |
K3dIntrLinePlane::~K3dIntrLinePlane | ( | ) |
Definition at line 41 of file K3dIntrLinePlane.cpp.
Find the point where a line intersect a plane.
bool | True,if edge intersect the plane |
Definition at line 47 of file K3dIntrLinePlane.cpp.
References K3dVector3Work::Dot(), K3dRay::GetDirection(), K3dPlane::GetDistance(), K3dPlane::GetNormal(), K3dRay::GetOrigin(), K3dSceneData::GetVector3Work(), K3D_BACK_LINE, K3D_FRONT_LINE, K3D_LINE_INTR_PLANE, K3D_ON_PLANE_LINE, m_eLinePos, m_fDistanceDirection, m_fDistanceOrigin, m_kIntrPoint, m_pGameData, K3dDistance::PointPlane(), K3dVector3::Reset(), and K3dMath::Sign().
Referenced by K3dCutEdge::CutEdge(), K3dObjectWork::GetIntersection(), K3dIntersection::LineTriangle(), and K3dSphereWork::MoveByMouse().
K3dVector3Obj& K3dIntrLinePlane::GetIntrPoint | ( | ) | [inline] |
Get intersection point.
Definition at line 63 of file K3dIntrLinePlane.h.
References m_kIntrPoint.
Referenced by K3dCutEdge::CutEdge(), K3dObjectWork::GetIntersection(), K3dIntersection::LineTriangle(), and K3dSphereWork::MoveByMouse().
float& K3dIntrLinePlane::GetDistanceOrigin | ( | ) | [inline] |
Get distance between plane and edge origin.
Definition at line 69 of file K3dIntrLinePlane.h.
References m_fDistanceOrigin.
const float& K3dIntrLinePlane::GetDistanceOrigin | ( | ) | const [inline] |
float& K3dIntrLinePlane::GetDistanceDirection | ( | ) | [inline] |
Get distance between plane and edge direction.
Definition at line 79 of file K3dIntrLinePlane.h.
References m_fDistanceDirection.
const float& K3dIntrLinePlane::GetDistanceDirection | ( | ) | const [inline] |
ELinePlanePos& K3dIntrLinePlane::GetLinePlanePos | ( | ) | [inline] |
Get line position oposit plane after intersection.
Definition at line 89 of file K3dIntrLinePlane.h.
References m_eLinePos.
Referenced by K3dCutPoly::Cut().
K3dGameData* K3dIntrLinePlane::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented from K3dDistance.
Reimplemented in K3dIntersection, K3dIntrLinSph, K3dScene, and K3dMngSystem.
Definition at line 51 of file K3dIntrLinePlane.h.
Referenced by K3dIntrLinePlane(), and LinePlane().
K3dVector3Obj K3dIntrLinePlane::m_kIntrPoint [private] |
Intersection point if intersection true.
Definition at line 52 of file K3dIntrLinePlane.h.
Referenced by GetIntrPoint(), and LinePlane().
float K3dIntrLinePlane::m_fDistanceOrigin [private] |
Distance between plane and edge origin.
Definition at line 53 of file K3dIntrLinePlane.h.
Referenced by GetDistanceOrigin(), and LinePlane().
float K3dIntrLinePlane::m_fDistanceDirection [private] |
Distance between plane and edge origin.
Definition at line 54 of file K3dIntrLinePlane.h.
Referenced by GetDistanceDirection(), and LinePlane().
ELinePlanePos K3dIntrLinePlane::m_eLinePos [private] |
Line position oposit plane after intersection.
Definition at line 55 of file K3dIntrLinePlane.h.
Referenced by GetLinePlanePos(), and LinePlane().