64bool Region::inside_region()
const
144 sprintf(str,
"(%2.1f, %2.1f; %2.1f, %2.1f)",
147 else if (ndim == 3) {
148 sprintf(str,
"(%2.1f, %2.1f, %2.1f; %2.1f, %2.1f, %2.1f)",
FloatPoint defines a float-coordinate point in a 1D/2D/3D space.
int get_ndim() const
Get the dimension of the point, 1D/2D/3D.
FloatSize is used to describe a 1D, 2D or 3D rectangular size in floating numbers.
IntPoint defines an integer-coordinate point in a 1D/2D/3D space.
Pixel describes a 3D pixel's coordinates and its intensity value.
bool inside_region() const
to check whether a point is inside this region
string get_string() const
Get the description of this region in a string.
bool is_region_in_box(const FloatSize &box) const
To check whether 'this' region is inside a given box assuming the box's origins are (0,...
bool operator!=(const EMObject &e1, const EMObject &e2)
EMData * operator-(const EMData &em, float n)
bool operator==(const EMObject &e1, const EMObject &e2)
bool operator<(const Pixel &p1, const Pixel &p2)