VectorInt Concat(TVecInt[] Src)
Concatenates an array of TVecInt (VectorInt) objects and returns a combined array.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVecInt[] |
Returns: VectorInt
Examples
using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples
{
void Example()
{
TVecInt a,b,c,d;
MtxVec.CreateIt(out a, out b, out c, out d);
try
{
a.SetIt(new int[] {1,2,3});
b.Copy(a);
c.Concat([a,b]); // c = [1,2,3,1,2,3]
d.Size(10);
d.SetZero(0,4);
d.Concat(4,[c]); // d = [0,0,0,0,1,2,3,1,2,3]
}
finally
{
MtxVec.FreeIt(ref a, ref b, ref c, ref d);
}
}
}