Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Vector Class > Methods > Vector.CopyTo Method


Extreme Optimization Mathematics Library for .NET

Vector.CopyTo Method (Vector, Int32)

Copies the components of this Vector to another vector starting at the specified position.

[Visual Basic]
Overridable Overloads Public Function CopyTo( _
   ByVal vector As Vector, _
   ByVal index As Integer _
) As Vector
[C#]
public virtual Vector CopyTo(
   Vector vector,
   int index
);

Parameters

vector
The Vector whose components are to be set.
index
The index in vector where copying is to start.

Return Value

A reference to the destination vector.

Exceptions

Exception TypeCondition
ArgumentNullExceptionvector is a null reference (Nothing in Visual Basic)
ArgumentOutOfRangeExceptionindex is less than zero.
ArgumentException The length of vector is less than index plus the length of this instance.

See Also

Vector Class | Extreme.Mathematics.LinearAlgebra Namespace | Vector.CopyTo Overload List