Dew MtxVec NET
TVec.Rotate Methods
Summary
A cyclic shift on vector elements.

Class
TVec

Declaration
Function Rotate(Src: TMtxVec; Offset: integer): TVec;


Declaration
Function Rotate(Offset: integer): TVec;

Description
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.
 See Also 
Reverse 
Shift 

Example 1

var a: TVec; begin CreateIt(a); try a.SetIt(False,[1,2,3,4]); a.Rotate(2); // a = [3,4,1,2] finally FreeIt(a); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com