VectorInt.Size Method

Overload List

#SignatureDescription
1TMtxVecInt Size(TMtxVecBase Src)Size the object.
2TVecInt Size(Int32 ALength)Sets the following properties
3void Size(Int32 ALength, TIntPrecision aPrecision)Sets the following properties

Overload 1: TMtxVecInt Size(TMtxVecBase Src)

Size the object.

#NameTypeDescription
1SrcTMtxVecBasesource TVec, TMtx, TVecInt or TMtxInt

Result: stored in self (calling object), returns self for chaining

Remarks:

Assigns the size of the Src object to the calling object. If both objects have a matching Dew.Math.VectorInt.Length property, only the Dew.Math.VectorInt.IntPrecision property of the calling object will changed, while all other properties describing the size of the object will be preserved.

Overload 2: TVecInt Size(Int32 ALength)

Sets the following properties

#NameTypeDescription
1ALengthInt32

Result: stored in self (calling object), returns self for chaining

Remarks:
Vec.Length := ALength;

and preserves IntPrecision value. Default IntPrecision when object is created is prInt32.

Overload 3: void Size(Int32 ALength, TIntPrecision aPrecision)

Sets the following properties

#NameTypeDescription
1ALengthInt32
2aPrecisionTIntPrecision

Result: stored in self (calling object)

Remarks:
Vec.Precision := aPrecision;
Vec.Length := ALength;