12 lines
300 B
C#
12 lines
300 B
C#
using System.Numerics;
|
|
|
|
namespace DaggerFramework.Extensions
|
|
{
|
|
public static class Vector2Extensions
|
|
{
|
|
public static Vector2 Lerp(this Vector2 a, Vector2 b, double t)
|
|
{
|
|
return new Vector2(MathUtils.Lerp(a.X, b.X, t), MathUtils.Lerp(a.Y, b.Y, t));
|
|
}
|
|
}
|
|
} |