Click or drag to resize
DigitalRuneCompressedAabbTreeCopyTo Method
Copies the elements of the tree to an Array, starting at a particular Array index.

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

Parameters

array
Type: SystemInt32
The one-dimensional Array that is the destination of the elements copied from CompressedAabbTree. 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 elements in the source CompressedAabbTree is greater than the available space from arrayIndex to the end of the destination array.
Remarks

The CompressedAabbTree is not modified. The order of the elements in the new array is the same as the order of the elements in the tree in depth-first order.

This method is an O(n) operation, where n is the number of nodes in the tree!

See Also