GrapherApp.UI/Model/Vector2.cs
/// <summary>
///   <para>Linearly interpolates between vectors a and b by t.</para>
/// </summary>
/// <param name="a"></param>
/// <param name="b"></param>
/// <param name="t"></param>
Linearly interpolates between vectors a and b by t.
Linearly interpolates between vectors a and b by t .
public static Vector2 Lerp(Vector2 a, Vector2 b, float t)
		{
		    t = t < 0 ? 0 : t > 1 ? 1 : t;
			return new Vector2(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t);
		}
public static Vector2 Lerp ( Vector2 a , Vector2 b , float t ) { t = t < 0 ? 0 : t > 1 ? 1 : t ; return new Vector2 ( a . x + ( b . x - a . x ) * t , a . y + ( b . y - a . y ) * t ) ; }
Linearly interpolates between vectors a and b by t.
Linearly interpolates between vectors a and b by t .
a
Vector2
None
b
Vector2
None
t
float
None