Esempio n. 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 MyColor4 start, ref MyColor4 end, float amount, out MyColor4 result)
 {
     amount = MyMathf.SmoothStep(amount);
     Lerp(ref start, ref end, amount, out result);
 }
Esempio n. 2
0
 /// <summary>
 /// Performs a cubic interpolation between two matrices.
 /// </summary>
 /// <param name="start">Start matrix.</param>
 /// <param name="end">End matrix.</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 MyMatrix3x2 start, ref MyMatrix3x2 end, float amount, out MyMatrix3x2 result)
 {
     amount = MyMathf.SmoothStep(amount);
     Lerp(ref start, ref end, amount, out result);
 }