#include <HxCnum.h>
Public Methods | |
| HxCnum () | |
| Constructor. More... | |
| HxCnum (HxCoord *coords) | |
| Constructor. More... | |
| HxCnum (const HxCnum &rhs) | |
| Copy constructor. More... | |
| HxCnum & | operator= (const HxCnum &rhs) |
| Assignment operator. More... | |
| HxCnum & | operator= (HxCoord *coords) |
| Assignment operator. More... | |
| int | x () |
| The (current) x-coordinate. More... | |
| int | y () |
| The (current) y-coordinate. More... | |
| int | z () |
| The (current) z-coordinate. More... | |
| void | inc () |
| Go to the next coordinate. More... | |
| bool | operator!= (const HxCnum &rhs) |
| Comparison operator. More... | |
|
|
Constructor.
00063 : _coords(0)
00064 {
00065 }
|
|
|
Constructor.
00069 : _coords(coords)
00070 {
00071 }
|
|
|
Copy constructor.
00075 : _coords(rhs._coords) 00076 { 00077 } |
|
|
Assignment operator.
00081 {
00082 _coords = rhs._coords;
00083 return *this;
00084 }
|
|
|
Assignment operator.
00088 {
00089 _coords = coords;
00090 return *this;
00091 }
|
|
|
The (current) x-coordinate.
00095 {
00096 return _coords->x;
00097 }
|
|
|
The (current) y-coordinate.
00101 {
00102 return _coords->y;
00103 }
|
|
|
The (current) z-coordinate.
00107 {
00108 return _coords->y;
00109 }
|
|
|
Go to the next coordinate.
00113 {
00114 _coords++;
00115 }
|
|
|
Comparison operator.
00119 {
00120 return _coords != rhs._coords;
00121 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001