Rectangular region of data.
More...
#include <GREM/core/extents.hpp>
|
| constexpr bool | operator== (const Region< N > &other) const =default |
| | Compare this region's offset and extents to another for equality.
|
| constexpr bool | contains (Offset< N > point) const noexcept |
| | Check if a given point is contained within the extents of this region.
|
| uint32_t | fitCenteredIntegerScaled (Region targetRegion) |
| | Fit the region into the middle of a target region at the largest positive integer scale of its original size that still fits within the target.
|
template<size_t N>
struct grem::Region< N >
Rectangular region of data.
- Template Parameters
-
| N | number of data dimensions. Must be 2 or 3. |
◆ operator==()
template<size_t N>
|
|
nodiscardconstexprdefault |
Compare this region's offset and extents to another for equality.
- Parameters
-
| other | the region to compare this one to. |
- Returns
- true if the regions are equal, false otherwise.
◆ contains()
template<size_t N>
|
|
inlinenodiscardconstexprnoexcept |
Check if a given point is contained within the extents of this region.
- Parameters
-
- Returns
- true if the region contains the given point, false otherwise.
◆ fitCenteredIntegerScaled()
Fit the region into the middle of a target region at the largest positive integer scale of its original size that still fits within the target.
- Parameters
-
| targetRegion | target region to fit the region into. |
- Returns
- the integer scale that was chosen.
- Note
- If the original size cannot fit within the target, then the chosen scale will be 1.
◆ offset
◆ size
The documentation for this struct was generated from the following file: