TMtxVecInt Copy(TMtxVecInt Src)
Copy object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
Result: stored in self (calling object), returns self for chaining
Remarks:
Copy each of Vec elements to the calling object. Size and precision properties of the calling object are set implicitly to match Vec object.
Examples
using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples
{
void Example()
{
TMtxVecInt a,b,c;
a = new TMtxVecInt();
b = new TMtxVecInt();
a.SetIt(new int[] {1,2,3,4}); // a = [1,2,3,4] i.e 1+2i ; 3+4i
b.Copy(a); // b = [1,2,3,4]
}
}
Indexed: TMtxVecInt Copy(TMtxVecInt Src, Int32 SrcIndex, Int32 Index, Int32 Len)
Copy Src elements [SrcIndex]..[SrcIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | SrcIndex | Int32 | source start index |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Remarks:
Vector Dew.Math.VectorInt.Size must be set explicitly. An exception is raised if array borders are overrun or underrun.