You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > Scale Method > TMtxVec.Scale Method (double)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.Scale Method (double)

Multiply object elements with Value.

Pascal
function Scale(const Factor: double): TMtxVec; overload;

Multiply all calling object elements with Value in-place. This method is the same as the Mul method overloads multiplying with vector elements with a scalar.

var v: TVec; begin v:= TVec.Create; try v.SetIt(false,[2,3,5]); // v = [2,3,5] v.Scale(3); // v = [6,9,15] finally v.Free; end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!