You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clVector Structure > clVector Methods > Scale Method > clVector.Scale Method (double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clVector.Scale Method (double)

Multiply object elements with Value.

Syntax
C#
Visual Basic
public TOpenCLMtxVec Scale(double Factor);

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: clVector; begin v.CopyFromArray(TSingleArray.Create(2,3,5)); // v = [2,3,5] v.Scale(3); // v = [6,9,15] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!