using UnityEngine;
namespace Unity.VisualScripting
{
///
/// Returns the linear interpolation between two 2D vectors.
///
[UnitCategory("Math/Vector 2")]
[UnitTitle("Lerp")]
public sealed class Vector2Lerp : Lerp
{
protected override Vector2 defaultA => Vector2.zero;
protected override Vector2 defaultB => Vector2.one;
public override Vector2 Operation(Vector2 a, Vector2 b, float t)
{
return Vector2.Lerp(a, b, t);
}
}
}