CurveIntersections

References
Maintains an ordered list of Curve Intersection results.

Finalizer

~CurveIntersections

#
~CurveIntersections()
Destructor.

Properties

Count

#Since v5.0
public int Count { get; }
Gets the number of recorded intersection events.
Explicit

ICollection<IntersectionEvent>.IsReadOnly

#
This collection is read-only, so this property returns always true.

Indexers

Explicit

IList<IntersectionEvent>.this[]

#
Gets the intersection event data at the given index; setting always throws an exception.
index (int)Index of intersection event to retrieve.
The intersection event.
NotSupportedExceptionNotSupportedException is always thrown when setting this indexer.

this[]

#
public IntersectionEvent this[int index] { get; }
Gets the intersection event data at the given index.
index (int)Index of intersection event to retrieve.

Methods

CopyTo

#Since v5.0
public void CopyTo(IntersectionEvent[] array, int arrayIndex)
Copies all intersection results into another array, departing at an index in the target array.
array (IntersectionEvent[])The target array. This value cannot be null.
arrayIndex (int)Zero-based index in which to start the copy.
ArgumentNullExceptionIf array is null.
ArgumentOutOfRangeExceptionIf arrayIndex is less than 0.
ArgumentExceptionIf array is multi-dimensional; or if arrayIndex is larger than or equal to the length of this collection; or this collection contains more IntersectionEvents than the ones that can be stored in array after and including arrayIndex.

Dispose

#Since v5.0
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.

Dispose

#
protected virtual void Dispose(bool disposing)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

disposing (bool)true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.

GetEnumerator

#Since v5.0
public IEnumerator<IntersectionEvent> GetEnumerator()
Returns an enumerator that is capable of yielding all IntersectionEvents in the collection.
The constructed enumerator.
Addition is not supported and this method always throws NotSupportedException.
item (IntersectionEvent)Addition is not supported and this value is ignored.
NotSupportedExceptionNotSupportedException is always thrown.
Clearing is not supported and this method always throws NotSupportedException.
NotSupportedExceptionNotSupportedException is always thrown.
Allows to establish whether this collection contains and IntersectionEvent.

This method is O(n), where n is the Count of elements in this collection.

item (IntersectionEvent)Object to be found.
true if element is contained; otherwise false.
Removal is not supported and this method always throws NotSupportedException.
item (IntersectionEvent)
NotSupportedExceptionNotSupportedException is always thrown.
Explicit

IList<IntersectionEvent>.IndexOf

#
Determines the index of an IntersectionEvent.
item (IntersectionEvent)The IntersectionEvent to be found.
The index in case the IntersectionEvent was found; -1 otherwise.
Explicit

IList<IntersectionEvent>.Insert

#
void IList<IntersectionEvent>.Insert(int index, IntersectionEvent item)
Inserting is not supported and this method always throws NotSupportedException.
index (int)Inserting is not supported and this value is ignored.
item (IntersectionEvent)Inserting is not supported and this value is ignored.
NotSupportedExceptionNotSupportedException is always thrown.
Explicit

IList<IntersectionEvent>.RemoveAt

#
void IList<IntersectionEvent>.RemoveAt(int index)
Removal is not supported and this method always throws NotSupportedException.
index (int)Removal is not supported and this value is ignored.
NotSupportedExceptionNotSupportedException is always thrown.
Explicit

IEnumerable.GetEnumerator

#Since v5.0
IEnumerator IEnumerable.GetEnumerator()
Returns a non-generic enumerator that is capable of yielding all IntersectionEvents in the collection. This returns the same enumerator as the generic counterpart.
The constructed enumerator.