CurveIntersections

References
Maintains an ordered list of Curve Intersection results.

Finalizer

~CurveIntersections

#
Destructor.
~CurveIntersections()

Properties

Count

#Since v5.0
Gets the number of recorded intersection events.
public int Count { get; }
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.
IntersectionEvent IList<IntersectionEvent>.this[
index
Index of intersection event to retrieve.
]
The intersection event.
NotSupportedExceptionNotSupportedException is always thrown when setting this indexer.

this[]

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

Methods

CopyTo

#Since v5.0
Copies all intersection results into another array, departing at an index in the target array.
public void CopyTo(
array,
The target array. This value cannot be null.
arrayIndex
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
Actively reclaims unmanaged resources that this instance uses.
public void Dispose()

Dispose

#
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.

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

GetEnumerator

#Since v5.0
Returns an enumerator that is capable of yielding all IntersectionEvents in the collection.
public IEnumerator<IntersectionEvent> GetEnumerator()
The constructed enumerator.
Addition is not supported and this method always throws NotSupportedException.
void ICollection<IntersectionEvent>.Add(
item
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.

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

IList<IntersectionEvent>.IndexOf

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

IList<IntersectionEvent>.Insert

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

IList<IntersectionEvent>.RemoveAt

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

IEnumerable.GetEnumerator

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