The HPlane class is the data type of a plane. More...
#include <HGlobals.h>
Public Member Functions | |
float | a () const |
void | a (float A) |
float | b () const |
void | b (float B) |
float | c () const |
void | c (float C) |
void | CalculateNormal (HPoint &normal) const |
double | ClassifyPoint (HPoint const &p) const |
float | d () const |
void | d (float D) |
bool | Equal (HPlane const *p, float epsi1=HPOINT_EPSILON, float epsi2=HPOINT_EPSILON) const |
HPlane (float const A=0, float const B=1, float const C=0, float const D=0) | |
HPlane (HVector const &normal, float const D) | |
HPlane (HPlane const &p) | |
void | Set (float A, float B, float C, float D) |
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.
void HPlane::CalculateNormal | ( | HPoint & | normal | ) | const [inline] |
This method returns a perpendicular plane vector.
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] |
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.
void HPlane::Set | ( | float | A, |
float | B, | ||
float | C, | ||
float | D | ||
) | [inline] |
This method sets an HPlane object with parameter values.