Windows apps
Collapse the table of content
Expand the table of content

Vector4::CopyTo Method (array<Single>)

Copies the elements of the vector to a specified array.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
void CopyTo(
	array<float>^ array
)

Parameters

array
Type: array<System::Single>

The destination array.

ExceptionCondition
ArgumentNullException

array is nullptr.

ArgumentException

The number of elements in the current instance is greater than in the array.

RankException

array is multidimensional.

array must have at least four elements. The method copies the vector's elements starting at index 0.

Show:
© 2017 Microsoft