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

Resizes calling vector Length to Len.

Syntax
C#
Visual Basic
public TMtxVec Resize(int Len, bool ZeroIt);

If Length is less than Len and ZeroIt parameter is true, the remaining calling vector values are set to zero.

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