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

Sets the size of the vector.

Syntax
C#
Visual Basic
public TVec Size(int ALength, bool AComplex);

Same as the following code: 

 

Vec.Length := ALength; Vec.Complex := AComplex;

 

Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values. 

Existing floating point precision is preserved.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!