Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_VectorMat-
Description
Compute (ConstantA * A) + (ConstantB * B) for each pair of values in ScalarListA and ScalarListB and return in new ScalarList. By default (constants = 1) this just adds the two values. Set ConstantB = -1 to subtract B from A. Can also be used to Linear Interpolate, by setting ConstantB = (1-ConstantA)
| Name | ScalarBlend |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/VectorMathFunctions.h |
| Include Path | #include "GeometryScript/VectorMathFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/VectorMathFunctions.cpp |
UFUNCTION (BlueprintCallable, Category="GeometryScript|VectorMath", Meta=(ScriptMethod))
static FGeometryScriptScalarList ScalarBlend
(
FGeometryScriptScalarList ScalarListA,
FGeometryScriptScalarList ScalarListB,
double ConstantA,
double ConstantB
)