MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SmoothStep

Method SmoothStep

Source/Engine/Core/Math/Vector4.cs:928–932  ·  view source on GitHub ↗

Performs a cubic interpolation between two vectors. Start vector. End vector. Value between 0 and 1 indicating the weight of . When the method completes, contains the cubic interpolation of the two vectors.

(ref Vector4 start, ref Vector4 end, Real amount, out Vector4 result)

Source from the content-addressed store, hash-verified

926 /// <param name="amount">Value between 0 and 1 indicating the weight of <paramref name="end" />.</param>
927 /// <param name="result">When the method completes, contains the cubic interpolation of the two vectors.</param>
928 public static void SmoothStep(ref Vector4 start, ref Vector4 end, Real amount, out Vector4 result)
929 {
930 amount = Mathr.SmoothStep(amount);
931 Lerp(ref start, ref end, amount, out result);
932 }
933
934 /// <summary>
935 /// Performs a cubic interpolation between two vectors.

Callers

nothing calls this directly

Calls 2

LerpFunction · 0.70
SmoothStepFunction · 0.70

Tested by

no test coverage detected