You are here: Symbol Reference > MtxVec Namespace > Classes > TVec Class > public > Size Method > TVec.Size Method (integer, TMtxFloatPrecision)
MtxVec VCL
ContentsIndex
PreviousUpNext
TVec.Size Method (integer, TMtxFloatPrecision)

Sets the size of the vector.

Pascal
function Size(ALength: integer; const aFloatPrecision: TMtxFloatPrecision): TVec; overload;

Same as the following code: 

 

Vec.FloatPrecision := aFloatPrecision; Vec.Length := ALength;

 

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

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