Click or drag to resize
DigitalRuneContactSetCopyTo Method
Copies the Contacts of the ContactSet to an Array, starting at a particular Array index.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public void CopyTo(
	Contact[] array,
	int arrayIndex
)

Parameters

array
Type: DigitalRune.Geometry.CollisionsContact
The one-dimensional Array that is the destination of the Contacts copied from this ContactSet. The Array must have zero-based indexing.
arrayIndex
Type: SystemInt32
The zero-based index in array at which copying begins.

Implements

ICollectionTCopyTo(T, Int32)
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is .
ArgumentOutOfRangeExceptionarrayIndex is less than 0.
ArgumentExceptionarray is multidimensional. Or arrayIndex is equal to or greater than the length of array. Or the number of contacts in the source ContactSet is greater than the available space from arrayIndex to the end of the destination array. Or type Contact cannot be cast automatically to the type of the destination array.
See Also