IntPoint defines an integer-coordinate point in a 1D/2D/3D space.
More...
#include <geometry.h>
IntPoint defines an integer-coordinate point in a 1D/2D/3D space.
Definition at line 192 of file geometry.h.
◆ IntPoint() [1/4]
EMAN::IntPoint::IntPoint |
( |
| ) |
|
|
inline |
Construct a point at the origin location.
Definition at line 196 of file geometry.h.
References data, and ndim.
◆ IntPoint() [2/4]
EMAN::IntPoint::IntPoint |
( |
int |
xx | ) |
|
|
inlineexplicit |
Construct a 1D point.
- Parameters
-
xx | The x coordinate value. |
Definition at line 207 of file geometry.h.
References data, and ndim.
◆ IntPoint() [3/4]
EMAN::IntPoint::IntPoint |
( |
int |
xx, |
|
|
int |
yy |
|
) |
| |
|
inline |
Construct a 2D point.
- Parameters
-
xx | The x coordinate value. |
yy | The y coordinate value. |
Definition at line 219 of file geometry.h.
References data, and ndim.
◆ IntPoint() [4/4]
EMAN::IntPoint::IntPoint |
( |
int |
xx, |
|
|
int |
yy, |
|
|
int |
zz |
|
) |
| |
|
inline |
Construct a 3D point.
- Parameters
-
xx | The x coordinate value. |
yy | The y coordinate value. |
zz | The z coordinate value. |
Definition at line 232 of file geometry.h.
References data, and ndim.
◆ get_ndim()
int EMAN::IntPoint::get_ndim |
( |
| ) |
const |
|
inline |
Get the dimension of the point, 1D/2D/3D.
- Returns
- The dimension of the point.
Definition at line 243 of file geometry.h.
References ndim.
◆ operator[]() [1/2]
int & EMAN::IntPoint::operator[] |
( |
int |
i | ) |
|
|
inline |
Get the ith direction's coordinate.
Used as a lvalue.
- Parameters
-
i | The ith direction, with 0 is x, 1 is y, 2 is z. |
- Returns
- The ith direction's coordinate.
Definition at line 261 of file geometry.h.
References data.
◆ operator[]() [2/2]
int EMAN::IntPoint::operator[] |
( |
int |
i | ) |
const |
|
inline |
Get the ith direction's coordinate.
Used as a rvalue.
- Parameters
-
i | The ith direction, with 0 is x, 1 is y, 2 is z. |
- Returns
- The ith direction's coordinate.
Definition at line 252 of file geometry.h.
References data.
◆ data
int EMAN::IntPoint::data[3] |
|
private |
◆ ndim
The documentation for this class was generated from the following file: