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

Method SmoothStep

Source/Engine/Core/Math/Double2.cs:923–927  ·  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 Double2 start, ref Double2 end, double amount, out Double2 result)

Source from the content-addressed store, hash-verified

921 /// <param name="amount">Value between 0 and 1 indicating the weight of <paramref name="end" />.</param>
922 /// <param name="result">When the method completes, contains the cubic interpolation of the two vectors.</param>
923 public static void SmoothStep(ref Double2 start, ref Double2 end, double amount, out Double2 result)
924 {
925 amount = Mathd.SmoothStep(amount);
926 Lerp(ref start, ref end, amount, out result);
927 }
928
929 /// <summary>
930 /// 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