Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_VectorMathFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/VectorMathFunctions.h |
| Include | #include "GeometryScript/VectorMathFunctions.h" |
Syntax
UCLASS&40;Meta&61;&40;ScriptName&61;"GeometryScript_VectorMath"&41;&41;
class UGeometryScriptLibrary_VectorMathFunctions : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| FGeometryScriptScalarList | ConstantScalarMultiply
(
double Constant, |
Returns a Scalar List of the same length as the input Scalar List, with the elements computed as (Constant * A) where A is the corresponding element in the input List. | |
| void | ConstantScalarMultiplyInPlace
(
double Constant, |
Compute (Constant * A) for each element A is the Scalar List, and the result is stored in the original Scalar List. | |
| FGeometryScriptVectorList | ConstantVectorMultiply
(
double Constant, |
Compute (Constant * Vector) for each element in VectorList, and return in a new list | |
| void | ConstantVectorMultiplyInPlace
(
double Constant, |
Compute (Constant * Vector) for each element in VectorList, and store in VectorList | |
| FGeometryScriptScalarList | ScalarBlend
(
FGeometryScriptScalarList ScalarListA, |
Compute (ConstantA * A) + (ConstantB * B) for each pair of values in ScalarListA and ScalarListB and return in new ScalarList. | |
| void | ScalarBlendInPlace
(
FGeometryScriptScalarList ScalarListA, |
Compute (ConstantA * A) + (ConstantB * B) for each pair of values in ScalarListA and ScalarListB and return in ScalarListB. | |
| FGeometryScriptScalarList | ScalarInvert
(
FGeometryScriptScalarList ScalarList, |
Compute (Numerator / Scalar) for each element of ScalarList and return in a new ScalarList. | |
| void | ScalarInvertInPlace
(
FGeometryScriptScalarList& ScalarList, |
Compute (Numerator / Scalar) for each element of ScalarList and store in input ScalarList If Abs(Scalar) < Epsilon, set to SetOnFailure value. | |
| FGeometryScriptScalarList | ScalarMultiply
(
FGeometryScriptScalarList ScalarListA, |
Returns a Scalar List constructed with each element is the product (ConstantMultiplier * A * B) where A and B are the corresponding elements from ScalarListA and ScalarListB accordingly. | |
| void | ScalarMultiplyInPlace
(
FGeometryScriptScalarList ScalarListA, |
Compute (ConstantMultiplier * A * B) where A and B are the corresponding elements from ScalarListA and ScalarListB accordingly, and store the result in ScalarListA. | |
| FGeometryScriptVectorList | ScalarVectorMultiply
(
FGeometryScriptScalarList ScalarList, |
Compute (ScalarMultiplier * Scalar * Vector) for each scalar/vector pair in the two input lists, and return in a new VectorList. | |
| void | ScalarVectorMultiplyInPlace
(
FGeometryScriptScalarList ScalarList, |
Compute (ScalarMultiplier * Scalar * Vector) for each scalar/vector pair in the two input lists, and store in the input VectorList | |
| FGeometryScriptVectorList | VectorBlend
(
FGeometryScriptVectorList VectorListA, |
Compute (ConstantA * A) + (ConstantB * B) for each pair of vectors in VectorListA and VectorListB and return in new VectorList. | |
| void | VectorBlendInPlace
(
FGeometryScriptVectorList VectorListA, |
Compute (ConstantA * A) + (ConstantB * B) for each pair of vectors in VectorListA and VectorListB, and store in VectorListB By default (constants = 1) this just adds the two vectors. | |
| FGeometryScriptVectorList | VectorCross
(
FGeometryScriptVectorList VectorListA, |
Compute the cross-product between each pair of vectors in VectorListA and VectorListB and return in new VectorList | |
| FGeometryScriptScalarList | VectorDot
(
FGeometryScriptVectorList VectorListA, |
Compute the dot-product between each pair of vectors in VectorListA and VectorListB and return in new ScalarList | |
| FGeometryScriptScalarList | VectorLength
(
FGeometryScriptVectorList VectorList |
Compute the length/magnitude of each vector in VectorListA and return in new ScalarList. | |
| void | VectorNormalizeInPlace
(
FGeometryScriptVectorList& VectorList, |
Normalize each vector in VectorList, and store in VectorList. | |
| FGeometryScriptScalarList | VectorToScalar
(
FGeometryScriptVectorList VectorList, |
Convert each Vector in VectorList to a Scalar by computing (ConstantX*Vector.X + ConstantY*Vector.Y + ConstantZ*Vector.Z), and return in a new ScalarList. |