You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Methods > Rotate Method > Vector.Rotate Method (int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.Rotate Method (int)

A cyclic shift on vector elements.

Syntax
C#
Visual Basic
public TVec Rotate(int Offset);

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.

var a: Vector; begin a.SetIt(False,[1,2,3,4]); a.Rotate(2); // a = [3,4,1,2] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!