The HPoint class is the data type of a three-dimensional point.
More...
#include <HGlobals.h>
|
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() [1/4]
◆ HPoint() [2/4]
HPoint::HPoint |
( |
float |
X, |
|
|
float |
Y, |
|
|
float |
Z = 0.0f |
|
) |
| |
|
inline |
This constructor accepts floats for the x, y and z coordinates.
◆ HPoint() [3/4]
HPoint::HPoint |
( |
HPoint const * |
p | ) |
|
|
inline |
This constructor accepts a pointer to an HPoint object.
◆ HPoint() [4/4]
HPoint::HPoint |
( |
HPoint const & |
p | ) |
|
|
inline |
This constructor accepts an HPoint reference.
◆ Add()
void HPoint::Add |
( |
float |
X, |
|
|
float |
Y, |
|
|
float |
Z = 0.0 |
|
) |
| |
|
inline |
This method increases/decreases the coordinate values of an existing HPoint object.
- Parameters
-
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. |
◆ Equal() [1/2]
This method checks if the xyz components of the point are equal.
References x, y, and z.
◆ Equal() [2/2]
This method checks if the xyz components of the point are equal.
◆ Set() [1/5]
void HPoint::Set |
( |
float |
X, |
|
|
float |
Y, |
|
|
float |
Z = 0.0f |
|
) |
| |
|
inline |
◆ Set() [2/5]
void HPoint::Set |
( |
HPoint * |
p | ) |
|
|
inline |
This method packs an HPoint object with coordinate values from a given HPoint.
References x, y, and z.
◆ Set() [3/5]
void HPoint::Set |
( |
HPoint const * |
p | ) |
|
|
inline |
This method packs an HPoint object with coordinate values from a given HPoint.
References x, y, and z.
◆ Set() [4/5]
void HPoint::Set |
( |
HPoint & |
p | ) |
|
|
inline |
This method packs an HPoint object with coordinate values from a given HPoint that is passed by reference.
References x, y, and z.
◆ Set() [5/5]
void HPoint::Set |
( |
const HPoint & |
p | ) |
|
|
inline |
This method packs an HPoint object with coordinate values from a given HPoint that is passed by reference.
References x, y, and z.
The documentation for this class was generated from the following file: