Pyrogenesis trunk
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CPlane Class Reference

#include <Plane.h>

Collaboration diagram for CPlane:
Collaboration graph
[legend]

Public Member Functions

 CPlane ()
 
 CPlane (const CVector4D &coeffs)
 
void Set (const CVector3D &p1, const CVector3D &p2, const CVector3D &p3)
 
void Set (const CVector3D &norm, const CVector3D &point)
 
void Normalize ()
 
PLANESIDE ClassifyPoint (const CVector3D &point) const
 
bool IsPointOnBackSide (const CVector3D &point) const
 
float DistanceToPlane (const CVector3D &point) const
 
bool FindLineSegIntersection (const CVector3D &start, const CVector3D &end, CVector3D *intsect) const
 
bool FindRayIntersection (const CVector3D &start, const CVector3D &direction, CVector3D *intsect) const
 

Public Attributes

CVector3D m_Norm
 
float m_Dist
 

Static Public Attributes

static const float m_EPS = 0.001f
 

Constructor & Destructor Documentation

◆ CPlane() [1/2]

CPlane::CPlane ( )

◆ CPlane() [2/2]

CPlane::CPlane ( const CVector4D coeffs)
inline

Member Function Documentation

◆ ClassifyPoint()

PLANESIDE CPlane::ClassifyPoint ( const CVector3D point) const

◆ DistanceToPlane()

float CPlane::DistanceToPlane ( const CVector3D point) const
inline

◆ FindLineSegIntersection()

bool CPlane::FindLineSegIntersection ( const CVector3D start,
const CVector3D end,
CVector3D intsect 
) const

◆ FindRayIntersection()

bool CPlane::FindRayIntersection ( const CVector3D start,
const CVector3D direction,
CVector3D intsect 
) const

◆ IsPointOnBackSide()

bool CPlane::IsPointOnBackSide ( const CVector3D point) const
inline

◆ Normalize()

void CPlane::Normalize ( )

◆ Set() [1/2]

void CPlane::Set ( const CVector3D norm,
const CVector3D point 
)

◆ Set() [2/2]

void CPlane::Set ( const CVector3D p1,
const CVector3D p2,
const CVector3D p3 
)

Member Data Documentation

◆ m_Dist

float CPlane::m_Dist

◆ m_EPS

const float CPlane::m_EPS = 0.001f
static

◆ m_Norm

CVector3D CPlane::m_Norm

The documentation for this class was generated from the following files: