Class Vector2Lerp
Returns the linear interpolation between two 2D vectors.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Math/Vector 2")]
[UnitTitle("Lerp")]
public sealed class Vector2Lerp : Lerp<Vector2>, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
defaultA
Declaration
protected override Vector2 defaultA { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Overrides
Unity.VisualScripting.Lerp<UnityEngine.Vector2>.defaultA
defaultB
Declaration
protected override Vector2 defaultB { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Overrides
Unity.VisualScripting.Lerp<UnityEngine.Vector2>.defaultB
Methods
Operation(Vector2, Vector2, Single)
Declaration
public override Vector2 Operation(Vector2 a, Vector2 b, float t)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | a | |
Vector2 | b | |
Single | t |
Returns
Type | Description |
---|---|
Vector2 |
Overrides
Unity.VisualScripting.Lerp<UnityEngine.Vector2>.Operation(UnityEngine.Vector2, UnityEngine.Vector2, System.Single)