Class ScalarAverage
Returns the average of two or more scalars.
Inheritance
ScalarAverage
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Math/Scalar")]
[UnitTitle("Average")]
public sealed class ScalarAverage : Average<float>, IMultiInputUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Methods
Operation(IEnumerable<Single>)
Declaration
public override float Operation(IEnumerable<float> values)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Single> | values |
Returns
Type | Description |
---|---|
Single |
Overrides
Unity.VisualScripting.Average<System.Single>.Operation(System.Collections.Generic.IEnumerable<System.Single>)
Operation(Single, Single)
Declaration
public override float Operation(float a, float b)
Parameters
Type | Name | Description |
---|---|---|
Single | a | |
Single | b |
Returns
Type | Description |
---|---|
Single |
Overrides
Unity.VisualScripting.Average<System.Single>.Operation(System.Single, System.Single)