3#include <iolink/IOLinkAPI.h>
4#include <iolink/VectorX.h>
135 bool operator==(
const RegionX& other)
const;
136 bool operator!=(
const RegionX& other)
const;
A Region using dynamic vectors.
Definition: RegionX.h:14
RegionX intersection(const RegionX &other) const
Returns the intersection of this region and another.
RegionX(RegionX &®ion) noexcept=default
move constructor
RegionX(const RegionX ®ion)=default
copy constructor
static RegionX createFullRegion(const SizeType ®ionSize)
Utility factory that create the region of origin [0, 0, 0] and given size.
bool contains(const VectorType &position) const
Checks if this region contains a point.
bool intersect(const RegionX &other) const
Checks if this region intersect another.
size_t dimensionCount() const
The dimension of this region.
std::string toString() const
Return a string representation.
size_t elementCount() const
Returns the number of cells in this region.
VectorType min() const
Returns the minimal point of the region.
VectorType max() const
Return the maximal point of the region.
const VectorType & origin() const
Returns the position of the region's origin.
const SizeType & size() const
Returns the region's size.
RegionX(size_t dimension)
Creates an empty region.
bool contains(const RegionX &other) const
Checks if this region conatins another.
RegionX extractSliceFromAxis(size_t dimension, T origin) const
Returns a region of size one along one axis.
bool isEmpty() const
Checks if the region is empty.
RegionX(const VectorType &origin, const SizeType &size)
Builds a region from its origin and size.
A dynamically sized arithmetic vector.
Definition: VectorX.h:18
All IOLink symbols are enclosed in this namespace.
Definition: ArrayX.h:8