Skip to main content
Version: 12 Dec 2024

Enumerator

An enumerator which can be used by a foreach statement to iterate over the elements in a PlaneBoundaryCollection.

Public Fields​

Current​

The current element in the enumerator.


public PlaneBoundary Current { get; set; }

TypeDescription
PlaneBoundaryContainer for the boundary of a detected planar surface. This is specific to Magic Leap because the polygon describing the boundary may be concave, and may contain holes.

Public Methods​

void Dispose​

Disposes of the enumerator.

public void Dispose()

bool MoveNext​

Moves to the next element in the collection.

public bool MoveNext()

Returns: true if the next element is valid, or false if the Enumerator is already at the end of the collection.


void Reset​

Resets the enumerator.

public void Reset()

Public Attributes​

m_Collection​


public PlaneBoundaryCollection m_Collection;

TypeDescription
PlaneBoundaryCollectionRepresents a collection of concave BoundedPlane boundaries obtained from MagicLeapPlaneSubsystem.GetAllBoundariesForPlane(TrackableId).

m_Index​


public int m_Index;