Struct RadiusRegionsEnumerator
Enumerates all regions containing a circle of a given radius.
public struct RadiusRegionsEnumerator : IEnumerator<RegionCoord>, IEnumerator, IDisposable, IEnumerable<RegionCoord>, IEnumerable
- Implements
-
IEnumerator<RegionCoord>IEnumerable<RegionCoord>
- Inherited Members
- Extension Methods
Constructors
RadiusRegionsEnumerator(Vector2, float)
public RadiusRegionsEnumerator(Vector2 center, float radius)
Parameters
centerVector2radiusfloat
RadiusRegionsEnumerator(Vector3, float)
public RadiusRegionsEnumerator(Vector3 center, float radius)
Parameters
centerVector3radiusfloat
Properties
Current
Gets the element in the collection at the current position of the enumerator.
public RegionCoord Current { get; }
Property Value
- RegionCoord
The element in the collection at the current position of the enumerator.
Methods
GetEnumerator()
public readonly RadiusRegionsEnumerator GetEnumerator()
Returns
MoveNext()
Advances the enumerator to the next element of the collection.
public bool MoveNext()
Returns
- bool
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.
Exceptions
- InvalidOperationException
The collection was modified after the enumerator was created.
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
public void Reset()
Exceptions
- InvalidOperationException
The collection was modified after the enumerator was created.