Copies the components of this instance
to another Vector starting at the specified position.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overrides Function CopyTo ( _ vector As Vector, _ index As Integer _ ) As Vector |
| C# |
|---|
public override Vector CopyTo ( Vector vector, int index ) |
| C++ |
|---|
public: virtual Vector^ CopyTo ( Vector^ vector, int index ) override |
Parameters
- vector (Extreme.Mathematics.LinearAlgebra.Vector)
- The Vector whose components are to be set.
- index (System.Int32)
- The index in vector where copying is to start.
Return Value
A reference to the copied vector.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | vector is nullNothingnullptr |
| ArgumentOutOfRangeException | index is less than zero. |
| ArgumentException | The length of vector is less than index plus the length of this instance. |