/// <summary> /// Creates a new <see cref="Vector2f"/> that contains cubic interpolation of the specified vectors. /// </summary> /// <param name="value1">Source <see cref="Vector2f"/>.</param> /// <param name="value2">Source <see cref="Vector2f"/>.</param> /// <param name="amount">Weighting value.</param> /// <param name="result">Cubic interpolation of the specified vectors as an output parameter.</param> public static void SmoothStep(ref Vector2f value1, ref Vector2f value2, float amount, out Vector2f result) { result.X = Maths.SmoothStep(value1.X, value2.X, amount); result.Y = Maths.SmoothStep(value1.Y, value2.Y, amount); }
/// <summary> /// Creates a new <see cref="Vector2f"/> that contains cubic interpolation of the specified vectors. /// </summary> /// <param name="value1">Source <see cref="Vector2f"/>.</param> /// <param name="value2">Source <see cref="Vector2f"/>.</param> /// <param name="amount">Weighting value.</param> /// <returns>Cubic interpolation of the specified vectors.</returns> public static Vector2f SmoothStep(Vector2f value1, Vector2f value2, float amount) { return(new Vector2f( Maths.SmoothStep(value1.X, value2.X, amount), Maths.SmoothStep(value1.Y, value2.Y, amount))); }