Example #1
0
 /// <summary>
 /// Performs a cubic interpolation between two colors.
 /// </summary>
 /// <param name="start">Start color.</param>
 /// <param name="end">End color.</param>
 /// <param name="amount">Value between 0 and 1 indicating the weight of <paramref name="end"/>.</param>
 /// <param name="result">When the method completes, contains the cubic interpolation of the two colors.</param>
 public static void SmoothStep(ref Color3 start, ref Color3 end, float amount, out Color3 result)
 {
     amount = MathUtil.SmoothStep(amount);
     Lerp(ref start, ref end, amount, out result);
 }
Example #2
0
 /// <summary>
 /// Performs a cubic interpolation between two matrices.
 /// </summary>
 /// <param name="start">Start Matrix5x4.</param>
 /// <param name="end">End Matrix5x4.</param>
 /// <param name="amount">Value between 0 and 1 indicating the weight of <paramref name="end"/>.</param>
 /// <param name="result">When the method completes, contains the cubic interpolation of the two matrices.</param>
 public static void SmoothStep(ref Matrix5x4 start, ref Matrix5x4 end, float amount, out Matrix5x4 result)
 {
     amount = MathUtil.SmoothStep(amount);
     Lerp(ref start, ref end, amount, out result);
 }