Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TVec Shift(TMtxVec Src, Int32 Offset) | Shift vector elements left or right in the array. |
| └ indexed: TMtxVec Shift(TMtxVec Vec, Int32 Offset, Int32 VecIndex, Int32 Index, Int32 Len) | ||
| 2 | TVec Shift(Int32 Offset) | Shift vector elements. |
| └ indexed: TMtxVec Shift(Int32 Offset, Int32 Index, Int32 Len) |
Overload 1: TVec Shift(TMtxVec Src, Int32 Offset)
Shift vector elements left or right in the array.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec | source TVec or TMtx |
| 2 | Offset | Int32 |
Result: stored in self (calling object), returns self for chaining
Shifts Src vector elements and stores the result in the calling object. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.
Indexed: TMtxVec Shift(TMtxVec Vec, Int32 Offset, Int32 VecIndex, Int32 Index, Int32 Len)
A shift on vector elements in range.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | Offset | Int32 | |
| 3 | VecIndex | Int32 | |
| 4 | Index | Int32 | start index |
| 5 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Performs shift on source vector elements in specified range [Index..Index+Len] and stores them to calling vector. The number of elements to shift is specified in the Offset parameter.
Offset can be any integer number, positive or negative.
Overload 2: TVec Shift(Int32 Offset)
Shift vector elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | Int32 |
Result: stored in self (calling object), returns self for chaining
Shifts calling vector elements. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.
Vector a;
a.SetIt(false,new double[] {1,-2,3,0});
a.Shift(1); // a = 1,1,-2,3
Indexed: TMtxVec Shift(Int32 Offset, Int32 Index, Int32 Len)
Shift vector elements in range.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | Int32 | |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Shifts calling vector elements in specified range [Index..Index+Len]. The number of elements by which to shift is specified in the Offset parameter.
Offset can be any integer number, positive or negative.