FloatPoint defines a float-coordinate point in a 1D/2D/3D space.
More...
#include <geometry.h>
|
| FloatPoint () |
| Construct a point at the origin location. More...
|
|
| FloatPoint (float xx) |
| Construct a 1D point. More...
|
|
| FloatPoint (float xx, float yy) |
| Construct a 2D point. More...
|
|
| FloatPoint (float xx, float yy, float zz) |
| Construct a 3D point. More...
|
|
| FloatPoint (int xx) |
| Construct a 1D point. More...
|
|
| FloatPoint (int xx, int yy) |
| Construct a 2D point. More...
|
|
| FloatPoint (int xx, int yy, int zz) |
| Construct a 3D point. More...
|
|
| FloatPoint (double xx) |
| Construct a 1D point. More...
|
|
| FloatPoint (double xx, double yy) |
| Construct a 2D point. More...
|
|
| FloatPoint (double xx, double yy, double zz) |
| Construct a 3D point. More...
|
|
| FloatPoint (const FloatPoint &fp) |
|
int | get_ndim () const |
| Get the dimension of the point, 1D/2D/3D. More...
|
|
float | operator[] (int i) const |
| Get the ith direction's coordinate. More...
|
|
float & | operator[] (int i) |
| Get the ith direction's coordinate. More...
|
|
| operator vector< float > () const |
|
| operator IntPoint () const |
|
FloatPoint & | operator= (const vector< float > &v) |
|
FloatPoint defines a float-coordinate point in a 1D/2D/3D space.
Definition at line 278 of file geometry.h.
◆ FloatPoint() [1/11]
EMAN::FloatPoint::FloatPoint |
( |
| ) |
|
|
inline |
Construct a point at the origin location.
Definition at line 283 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [2/11]
EMAN::FloatPoint::FloatPoint |
( |
float |
xx | ) |
|
|
inlineexplicit |
Construct a 1D point.
- Parameters
-
xx | The x coordinate value. |
Definition at line 294 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [3/11]
EMAN::FloatPoint::FloatPoint |
( |
float |
xx, |
|
|
float |
yy |
|
) |
| |
|
inline |
Construct a 2D point.
- Parameters
-
xx | The x coordinate value. |
yy | The y coordinate value. |
Definition at line 306 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [4/11]
EMAN::FloatPoint::FloatPoint |
( |
float |
xx, |
|
|
float |
yy, |
|
|
float |
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 319 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [5/11]
EMAN::FloatPoint::FloatPoint |
( |
int |
xx | ) |
|
|
inlineexplicit |
Construct a 1D point.
- Parameters
-
xx | The x coordinate value. |
Definition at line 330 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [6/11]
EMAN::FloatPoint::FloatPoint |
( |
int |
xx, |
|
|
int |
yy |
|
) |
| |
|
inline |
Construct a 2D point.
- Parameters
-
xx | The x coordinate value. |
yy | The y coordinate value. |
Definition at line 342 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [7/11]
EMAN::FloatPoint::FloatPoint |
( |
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 355 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [8/11]
EMAN::FloatPoint::FloatPoint |
( |
double |
xx | ) |
|
|
inlineexplicit |
Construct a 1D point.
- Parameters
-
xx | The x coordinate value. |
Definition at line 366 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [9/11]
EMAN::FloatPoint::FloatPoint |
( |
double |
xx, |
|
|
double |
yy |
|
) |
| |
|
inline |
Construct a 2D point.
- Parameters
-
xx | The x coordinate value. |
yy | The y coordinate value. |
Definition at line 378 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [10/11]
EMAN::FloatPoint::FloatPoint |
( |
double |
xx, |
|
|
double |
yy, |
|
|
double |
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 391 of file geometry.h.
References data, and ndim.
◆ FloatPoint() [11/11]
EMAN::FloatPoint::FloatPoint |
( |
const FloatPoint & |
fp | ) |
|
|
inline |
◆ get_ndim()
int EMAN::FloatPoint::get_ndim |
( |
| ) |
const |
|
inline |
◆ operator IntPoint()
EMAN::FloatPoint::operator IntPoint |
( |
| ) |
const |
|
inline |
◆ operator vector< float >()
EMAN::FloatPoint::operator vector< float > |
( |
| ) |
const |
|
inline |
◆ operator=()
FloatPoint & EMAN::FloatPoint::operator= |
( |
const vector< float > & |
v | ) |
|
|
inline |
Definition at line 440 of file geometry.h.
EMData * copy() const
This file is a part of "emdata.h", to use functions in this file, you should "#include "emdata....
References copy(), and data.
◆ operator[]() [1/2]
float & EMAN::FloatPoint::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 428 of file geometry.h.
References data.
◆ operator[]() [2/2]
float EMAN::FloatPoint::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 419 of file geometry.h.
References data.
◆ data
float EMAN::FloatPoint::data[3] |
|
private |
◆ ndim
int EMAN::FloatPoint::ndim |
|
private |
The documentation for this class was generated from the following file: