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