struct MR_PixelBitSet MR_PixelBitSet
Definition MRBitSet.h:95
struct MR_RectIndexer MR_RectIndexer
Definition MRDistanceMap.h:22
struct MR_Matrix_float MR_Matrix_float
Definition MRDistanceMap.h:17
struct MR_DistanceMap MR_DistanceMap
Definition MRDistanceMap.h:46
MRC_API void MR_RectIndexer_DestroyArray(const MR_RectIndexer *_this)
Destroys a heap-allocated array of MR_RectIndexer. Does nothing if the pointer is null.
MRC_API MR_uint64_t MR_RectIndexer_size(const MR_RectIndexer *_this)
MRC_API void MR_expandPixelMask(MR_PixelBitSet *mask, const MR_RectIndexer *indexer, const int32_t *expansion)
MRC_API void MR_RectIndexer_Destroy(const MR_RectIndexer *_this)
Destroys a heap-allocated instance of MR_RectIndexer. Does nothing if the pointer is null.
MRC_API MR_PixelId MR_RectIndexer_getNeighbor_3(const MR_RectIndexer *_this, MR_PixelId v, const MR_Vector2i *pos, MR_OutEdge2 toNei)
MRC_API MR_Vector2i MR_RectIndexer_toPos_uint64_t(const MR_RectIndexer *_this, MR_uint64_t id)
MRC_API MR_RectIndexer * MR_RectIndexer_OffsetMutablePtr(MR_RectIndexer *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_PixelId MR_RectIndexer_toPixelId(const MR_RectIndexer *_this, const MR_Vector2i *pos)
MRC_API MR_PixelId MR_RectIndexer_getNeighbor_2(const MR_RectIndexer *_this, MR_PixelId v, MR_OutEdge2 toNei)
MRC_API const MR_Vector2i * MR_RectIndexer_dims(const MR_RectIndexer *_this)
MRC_API MR_Matrix_float * MR_RectIndexer_MutableStaticDowncastTo_MR_Matrix_float(MR_RectIndexer *object)
@ MR_OutEdge2_Invalid
Definition MRRectIndexer.h:24
@ MR_OutEdge2_MinusX
Definition MRRectIndexer.h:28
@ MR_OutEdge2_PlusX
Definition MRRectIndexer.h:27
@ MR_OutEdge2_MinusY
Definition MRRectIndexer.h:26
@ MR_OutEdge2_Count
Definition MRRectIndexer.h:29
@ MR_OutEdge2_PlusY
Definition MRRectIndexer.h:25
MRC_API MR_uint64_t MR_RectIndexer_toIndex(const MR_RectIndexer *_this, const MR_Vector2i *pos)
MRC_API void MR_shrinkPixelMask(MR_PixelBitSet *mask, const MR_RectIndexer *indexer, const int32_t *shrinkage)
MRC_API MR_RectIndexer * MR_RectIndexer_ConstructFromAnother(const MR_RectIndexer *_other)
MRC_API const MR_Matrix_float * MR_RectIndexer_StaticDowncastTo_MR_Matrix_float(const MR_RectIndexer *object)
MRC_API bool MR_RectIndexer_areNeigbors_MR_Vector2i(const MR_RectIndexer *_this, const MR_Vector2i *pos0, const MR_Vector2i *pos1)
MRC_API MR_RectIndexer * MR_RectIndexer_Construct(const MR_Vector2i *dims)
MRC_API MR_OutEdge2 MR_opposite_MR_OutEdge2(MR_OutEdge2 e)
Generated from function MR::opposite.
MRC_API MR_RectIndexer * MR_RectIndexer_DefaultConstruct(void)
MRC_API MR_RectIndexer * MR_RectIndexer_DefaultConstructArray(size_t num_elems)
MRC_API bool MR_RectIndexer_areNeigbors_MR_PixelId(const MR_RectIndexer *_this, MR_PixelId v0, MR_PixelId v1)
MRC_API void MR_RectIndexer_resize(MR_RectIndexer *_this, const MR_Vector2i *dims)
MRC_API const MR_DistanceMap * MR_RectIndexer_StaticDowncastTo_MR_DistanceMap(const MR_RectIndexer *object)
int8_t MR_OutEdge2
Definition MRRectIndexer.h:21
MRC_API MR_DistanceMap * MR_RectIndexer_MutableStaticDowncastTo_MR_DistanceMap(MR_RectIndexer *object)
MRC_API MR_Vector2i MR_RectIndexer_toPos_MR_PixelId(const MR_RectIndexer *_this, MR_PixelId id)
MRC_API const MR_RectIndexer * MR_RectIndexer_OffsetPtr(const MR_RectIndexer *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_RectIndexer * MR_RectIndexer_AssignFromAnother(MR_RectIndexer *_this, const MR_RectIndexer *_other)
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11
const Vector3i & dims() const
Definition MRVector2.h:28