#include <geometry.h>
Public Member Functions | |
FloatPoint () | |
Construct a point at the origin location. | |
FloatPoint (float xx) | |
Construct a 1D point. | |
FloatPoint (float xx, float yy) | |
Construct a 2D point. | |
FloatPoint (float xx, float yy, float zz) | |
Construct a 3D point. | |
FloatPoint (int xx) | |
Construct a 1D point. | |
FloatPoint (int xx, int yy) | |
Construct a 2D point. | |
FloatPoint (int xx, int yy, int zz) | |
Construct a 3D point. | |
FloatPoint (double xx) | |
Construct a 1D point. | |
FloatPoint (double xx, double yy) | |
Construct a 2D point. | |
FloatPoint (double xx, double yy, double zz) | |
Construct a 3D point. | |
FloatPoint (const FloatPoint &fp) | |
int | get_ndim () const |
Get the dimension of the point, 1D/2D/3D. | |
float | operator[] (int i) const |
Get the ith direction's coordinate. | |
float & | operator[] (int i) |
Get the ith direction's coordinate. | |
operator vector () const | |
operator IntPoint () const | |
FloatPoint & | operator= (const vector< float > &v) |
Private Attributes | |
float | data [3] |
int | ndim |
Definition at line 282 of file geometry.h.
EMAN::FloatPoint::FloatPoint | ( | ) | [inline] |
EMAN::FloatPoint::FloatPoint | ( | float | xx | ) | [inline, explicit] |
EMAN::FloatPoint::FloatPoint | ( | float | xx, | |
float | yy | |||
) | [inline] |
EMAN::FloatPoint::FloatPoint | ( | float | xx, | |
float | yy, | |||
float | zz | |||
) | [inline] |
EMAN::FloatPoint::FloatPoint | ( | int | xx | ) | [inline, explicit] |
EMAN::FloatPoint::FloatPoint | ( | int | xx, | |
int | yy | |||
) | [inline] |
EMAN::FloatPoint::FloatPoint | ( | int | xx, | |
int | yy, | |||
int | zz | |||
) | [inline] |
EMAN::FloatPoint::FloatPoint | ( | double | xx | ) | [inline, explicit] |
EMAN::FloatPoint::FloatPoint | ( | double | xx, | |
double | yy | |||
) | [inline] |
EMAN::FloatPoint::FloatPoint | ( | double | xx, | |
double | yy, | |||
double | zz | |||
) | [inline] |
EMAN::FloatPoint::FloatPoint | ( | const FloatPoint & | fp | ) | [inline] |
int EMAN::FloatPoint::get_ndim | ( | ) | const [inline] |
Get the dimension of the point, 1D/2D/3D.
Definition at line 414 of file geometry.h.
References ndim.
Referenced by EMAN::Region::get_ndim(), EMAN::Region::get_string(), and EMAN::Region::inside_region().
00415 { 00416 return ndim; 00417 }
EMAN::FloatPoint::operator IntPoint | ( | ) | const [inline] |
Definition at line 442 of file geometry.h.
References data.
00442 { return IntPoint((int)data[0],(int)data[1],(int)data[2]); }
EMAN::FloatPoint::operator vector | ( | ) | const [inline] |
FloatPoint& EMAN::FloatPoint::operator= | ( | const vector< float > & | v | ) | [inline] |
float& EMAN::FloatPoint::operator[] | ( | int | i | ) | [inline] |
Get the ith direction's coordinate.
Used as a lvalue.
i | The ith direction, with 0 is x, 1 is y, 2 is z. |
Definition at line 432 of file geometry.h.
References data.
00433 { 00434 return data[i]; 00435 }
float EMAN::FloatPoint::operator[] | ( | int | i | ) | const [inline] |
Get the ith direction's coordinate.
Used as a rvalue.
i | The ith direction, with 0 is x, 1 is y, 2 is z. |
Definition at line 423 of file geometry.h.
References data.
00424 { 00425 return data[i]; 00426 }
float EMAN::FloatPoint::data[3] [private] |
Definition at line 450 of file geometry.h.
Referenced by FloatPoint(), operator IntPoint(), operator vector(), operator=(), and operator[]().
int EMAN::FloatPoint::ndim [private] |