Matrix.Rotate Method

Overload List

#SignatureDescription
1TMtxVec Rotate(TMtxVec Vec, Int32 Offset, Int32 VecIndex, Int32 Index, Int32 Len)A cyclic shift on Matrix elements in range.
2TMtxVec Rotate(Int32 Offset, Int32 Index, Int32 Len)A cyclic shift on Matrix elements in range.

Overload 1: TMtxVec Rotate(TMtxVec Vec, Int32 Offset, Int32 VecIndex, Int32 Index, Int32 Len)

A cyclic shift on Matrix elements in range.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2OffsetInt32
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Performs cyclic shift on source Matrix elements in specified range [Index..Index+Len] and stores them to calling Matrix. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.

See Also: Matrix.Reverse, Matrix.Shift

Overload 2: TMtxVec Rotate(Int32 Offset, Int32 Index, Int32 Len)

A cyclic shift on Matrix elements in range.

#NameTypeDescription
1OffsetInt32
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Performs cyclic shift on Matrix 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.

See Also: Matrix.Reverse, Matrix.Shift