|
|
PDS_JP2
|
#include <Dimensions.hh>
Inheritance diagram for Point_2D:

Public Member Functions | |
| Point_2D () | |
| Constructs a point at position 0,0. | |
| Point_2D (const int &x, const int &y) | |
| Constructs a point at position x,y. | |
| Point_2D (const Point_2D &point) | |
| Constructs a point from another point. | |
| Point_2D & | operator= (const Point_2D &point) |
| Assign the position of another point to this point. | |
| int | x () const |
| Get the horizontal (x-axis) position. | |
| Point_2D & | x (const int &x_position) |
| Set the horizontal (x-axis) position. | |
| int | y () const |
| Get the vertical (y-axis) position. | |
| Point_2D & | y (const int &y_position) |
| Set the vertical (y-axis) position. | |
Public Attributes | |
| int | X |
| The horizontal (x-axis) position of the point. | |
| int | Y |
| The vertical (y-axis) position of the point. | |
|
|
Constructs a point at position 0,0.
|
|
||||||||||||
|
Constructs a point at position x,y.
|
|
|
Constructs a point from another point.
|
|
|
Assign the position of another point to this point.
|
|
|
Get the horizontal (x-axis) position.
|
|
|
Set the horizontal (x-axis) position.
|
|
|
Get the vertical (y-axis) position.
|
|
|
Set the vertical (y-axis) position.
|
|
|
The horizontal (x-axis) position of the point.
|
|
|
The vertical (y-axis) position of the point.
|
1.4.6