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