Example #1
0
 /// <summary>
 /// Performs a linear interpolation on a two generic values using a blend factor.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="first"></param>
 /// <param name="second"></param>
 /// <param name="factor"></param>
 /// <returns></returns>
 public static T Lerp <T>(T first, T second, float factor)
 {
     return(SingleType <T> .Lerp(first, second, factor));
 }