HPlane
-
class
HPlane The
HPlaneclass is the data type of a plane.The
HPlaneclass encapsulates the a, b, c and d parameters of the plane equation.
Methods
-
void
HPlane::Set(float A, float B, float C, float D) This method sets an
HPlaneobject with parameter values.
-
double
HPlane::ClassifyPoint(HPoint const &p) const const
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.
-
void
HPlane::CalculateNormal(HPoint &normal) const const
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.
-
bool
HPlane::Equal(HPlane const *p, float epsi1 = HPOINT_EPSILON, float epsi2 = HPOINT_EPSILON) const const
This method checks if the xyz components of the point are equal.
Variables