MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Const_RectIndexer Class Reference

a class for converting 2D integer coordinates into 1D linear coordinates and backward Generated from class MR.RectIndexer. Derived classes: Direct: (non-virtual) MR.DistanceMap MR.Matrix<float> This is the const half of the class. More...

+ Inheritance diagram for MR.Const_RectIndexer:

Classes

struct  _Underlying
 
struct  _UnderlyingShared
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_RectIndexer ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_RectIndexer (MR.Const_RectIndexer _other)
 Generated from constructor MR.RectIndexer.RectIndexer.
 
unsafe Const_RectIndexer (in MR.Vector2i dims)
 Generated from constructor MR.RectIndexer.RectIndexer.
 
unsafe ref readonly MR.Vector2i dims ()
 Generated from method MR.RectIndexer.dims.
 
unsafe ulong size ()
 Generated from method MR.RectIndexer.size.
 
unsafe MR.Vector2i toPos (MR.PixelId id)
 Generated from method MR.RectIndexer.toPos.
 
unsafe MR.Vector2i toPos (ulong id)
 Generated from method MR.RectIndexer.toPos.
 
unsafe MR.PixelId toPixelId (in MR.Vector2i pos)
 Generated from method MR.RectIndexer.toPixelId.
 
unsafe ulong toIndex (in MR.Vector2i pos)
 Generated from method MR.RectIndexer.toIndex.
 
unsafe bool areNeigbors (MR.PixelId v0, MR.PixelId v1)
 returns true if v1 is within at most 4 neighbors of v0 Generated from method MR.RectIndexer.areNeigbors.
 
unsafe bool areNeigbors (in MR.Vector2i pos0, in MR.Vector2i pos1)
 Generated from method MR.RectIndexer.areNeigbors.
 
unsafe MR.PixelId getNeighbor (MR.PixelId v, MR.OutEdge2 toNei)
 returns id of v's neighbor specified by the edge Generated from method MR.RectIndexer.getNeighbor.
 
unsafe MR.PixelId getNeighbor (MR.PixelId v, in MR.Vector2i pos, MR.OutEdge2 toNei)
 Generated from method MR.RectIndexer.getNeighbor.
 

Static Public Member Functions

static unsafe implicit operator Const_RectIndexer (in MR.Vector2i dims)
 Generated from constructor MR.RectIndexer.RectIndexer.
 

Protected Member Functions

unsafe void _LateMakeShared (_Underlying *ptr)
 
virtual unsafe void Dispose (bool disposing)
 

Properties

override unsafe bool _IsOwning [get]
 Check if the underlying shared pointer is owning or not.
 
- Properties inherited from MR.Misc.SharedObject< Const_RectIndexer >
override bool _IsOwning [get]
 This checks if the shared_ptr itself is owning or not, rather than whether we own our shared_ptr, which isn't a given. The derived classes have to implement this, since it depends on the specific shared_ptr type.
 
bool _IsOwningSharedPtr [get]
 This checks if we own the underlying shared_ptr instance, regardless of whether it owns the underlying object, which is orthogonal. We repurpose _IsOwningVal for this.
 

Detailed Description

a class for converting 2D integer coordinates into 1D linear coordinates and backward Generated from class MR.RectIndexer. Derived classes: Direct: (non-virtual) MR.DistanceMap MR.Matrix<float> This is the const half of the class.


The documentation for this class was generated from the following file: