The HPoint class is the data type of a three-dimensional point. More...
#include <HGlobals.h>
Public Member Functions | |
void | Add (float X, float Y, float Z=0.0) |
bool | Equal (HPoint const *p, float epsi=HPOINT_EPSILON) const |
bool | Equal (HPoint const &p, float epsi=HPOINT_EPSILON) const |
HPoint () | |
HPoint (float X, float Y, float Z=0.0f) | |
HPoint (HPoint const *p) | |
HPoint (HPoint const &p) | |
bool | operator!= (HPoint const &rhs) const |
HPoint const | operator* (float const rhs) const |
HPoint const & | operator*= (float const rhs) |
HPoint const | operator+ (const HPoint &p2) const |
HPoint const & | operator+= (HPoint const &rhs) |
HPoint const | operator- (const HPoint &p2) const |
HPoint const & | operator-= (HPoint const &rhs) |
HPoint const | operator/ (float const rhs) const |
HPoint const & | operator/= (float const rhs) |
bool | operator== (HPoint const &rhs) const |
void | Set (float X, float Y, float Z=0.0f) |
void | Set (HPoint *p) |
void | Set (HPoint const *p) |
void | Set (HPoint &p) |
void | Set (const HPoint &p) |
Public Attributes | |
float | x |
The x-coordinate of a 3-dimensional point. | |
float | y |
The y-coordinate of a 3-dimensional point. | |
float | z |
The z-coordinate of a 3-dimensional point. |
The HPoint class is the data type of a three-dimensional point.
The HPoint class encapsulates the x, y, and z coordinates of a 3-dimensional point. HPoint simplifies the passing of 3-dimensional point data to all of the MVO and derived classes. It is widely used by public and internal functions as well as by native HOOPS routines.
HPoint::HPoint | ( | ) | [inline] |
The default constructor.
HPoint::HPoint | ( | float | X, |
float | Y, | ||
float | Z = 0.0f |
||
) | [inline] |
This constructor accepts floats for the x, y and z coordinates.
void HPoint::Add | ( | float | X, |
float | Y, | ||
float | Z = 0.0 |
||
) | [inline] |
This method increases/decreases the coordinate values of an existing HPoint object.
X | The amount in which you want to increment or decrement the x coordinate. |
Y | The amount in which you want to increment or decrement the y coordinate. |
Z | The amount in which you want to increment or decrement the z coordinate. |
bool HPoint::Equal | ( | HPoint const * | p, |
float | epsi = HPOINT_EPSILON |
||
) | const [inline] |
bool HPoint::Equal | ( | HPoint const & | p, |
float | epsi = HPOINT_EPSILON |
||
) | const [inline] |
This method checks if the xyz components of the point are equal.
void HPoint::Set | ( | float | X, |
float | Y, | ||
float | Z = 0.0f |
||
) | [inline] |
This method packs an HPoint object with coordinate values.
Referenced by HPlane::CalculateNormal(), and HMarkupManager::GetMarkupColor().
void HPoint::Set | ( | HPoint * | p | ) | [inline] |
void HPoint::Set | ( | HPoint const * | p | ) | [inline] |
void HPoint::Set | ( | HPoint & | p | ) | [inline] |
void HPoint::Set | ( | const HPoint & | p | ) | [inline] |