Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HPlane Class Reference

The HPlane class is the data type of a plane. More...

#include <HGlobals.h>

Inheritance diagram for HPlane:

HPlaneKey

List of all members.

Public Member Functions

void a (float A)
float a () const
void b (float B)
float b () const
void c (float C)
float c () const
void CalculateNormal (HPoint &normal) const
double ClassifyPoint (HPoint const &p) const
void d (float D)
float d () const
bool Equal (HPlane const *p, float epsi1=HPOINT_EPSILON, float epsi2=HPOINT_EPSILON) const
 HPlane (HPlane const &p)
 HPlane (HVector const &normal, float const D)
 HPlane (float const A=0, float const B=1, float const C=0, float const D=0)
void Set (float A, float B, float C, float D)


Detailed Description

The HPlane class is the data type of a plane.

The HPlane class encapsulates the a, b, c and d parameters of the plane equation.


Member Function Documentation

void HPlane::CalculateNormal ( HPoint normal  )  const [inline]

This method returns a perpendicular plane vector.

Parameters:
normal Pass by reference. The method returns the value for a normalized vector that is perpendicular to the plane.

References HC_Compute_Normalized_Vector(), and HPoint::Set().

double HPlane::ClassifyPoint ( HPoint const &  p  )  const [inline]

This method determines if given point is infront of or behind the plane.

Returns:
A positive value if the point is in front of the plane or a negative value if the point is behind the plane. If the value is 0, the point is on the plane.

References HPoint::x, HPoint::y, and HPoint::z.

bool HPlane::Equal ( HPlane const *  p,
float  epsi1 = HPOINT_EPSILON,
float  epsi2 = HPOINT_EPSILON 
) const [inline]

This method checks if the xyz components of the point are equal.

References m_a, m_b, m_c, and m_d.

void HPlane::Set ( float  A,
float  B,
float  C,
float  D 
) [inline]

This method sets an HPlane object with parameter values.


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