/// <summary> /// Performs a linear interpolation between two complex numbers. /// </summary> /// <param name="start">Start complex number.</param> /// <param name="end">End complex number.</param> /// <param name="amount">Value between 0 and 1 indicating the weight of <paramref name="end"/>.</param> /// <returns>The linear interpolation of the two complex numbers.</returns> /// <remarks> /// This method performs the linear interpolation based on the following formula. /// <code>start + (end - start) * amount</code> /// Passing <paramref name="amount"/> a value of 0 will cause <paramref name="start"/> to be returned; a value of 1 will cause <paramref name="end"/> to be returned. /// </remarks> public Complex Lerp(Complex start, Complex end, double amount) { return(new Complex(Functions.Lerp(start.A, end.A, amount), Functions.Lerp(start.B, end.B, amount))); }