You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > Shift Method > TVec.Shift Method (int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVec.Shift Method (int)

Shift vector elements left or right in the array.

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

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.

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