Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TVec Rotate(TMtxVec Src, Int32 Offset) | Applies cyclic shift on Src vector elements and stores the result in Self. |
| └ indexed: TMtxVec Rotate(TMtxVec Vec, Int32 Offset, Int32 VecIndex, Int32 Index, Int32 Len) | ||
| 2 | TVec Rotate(Int32 Offset) | A cyclic shift on vector elements. |
| └ indexed: TMtxVec Rotate(Int32 Offset, Int32 Index, Int32 Len) |
Overload 1: TVec Rotate(TMtxVec Src, Int32 Offset)
Applies cyclic shift on Src vector elements and stores the result in Self.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec | source TVec or TMtx |
| 2 | Offset | Int32 |
Result: stored in self (calling object), returns self for chaining
Indexed: TMtxVec Rotate(TMtxVec Vec, Int32 Offset, Int32 VecIndex, Int32 Index, Int32 Len)
A cyclic 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 cyclic 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 Rotate(Int32 Offset)
A cyclic shift on vector elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | Int32 |
Result: stored in self (calling object), returns self for chaining
Performs cyclic shift on 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,4});
a.Rotate(2); // a = new double[] {3,4,1,2}
Indexed: TMtxVec Rotate(Int32 Offset, Int32 Index, Int32 Len)
A cyclic shift on 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
Performs cyclic shift on vector elements in specified range [Index..Index+Len]. The number of elements to shift is specified in the Offset parameter.
Offset can be any integer number, positive or negative.