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

Function SmoothStep

Source/Engine/Core/Math/Math.h:474–477  ·  view source on GitHub ↗

Performs smooth (cubic Hermite) interpolation between 0 and 1.

Source from the content-addressed store, hash-verified

472
473 // Performs smooth (cubic Hermite) interpolation between 0 and 1.
474 static float SmoothStep(float amount)
475 {
476 return amount <= 0 ? 0 : amount >= 1 ? 1 : amount * amount * (3 - 2 * amount);
477 }
478
479 // Performs a smooth(er) interpolation between 0 and 1 with 1st and 2nd order derivatives of zero at endpoints.
480 static float SmootherStep(float amount)

Callers 15

SmoothStepMethod · 0.70
SmoothStepMethod · 0.70
SmoothStepMethod · 0.70
InterpolateAlphaBlendMethod · 0.70
SmoothStepMethod · 0.70
SmoothStepMethod · 0.70
SmoothStepMethod · 0.70
SmoothStepMethod · 0.70
InterpolateAlphaBlendMethod · 0.70
SmoothStepMethod · 0.70
SmoothStepMethod · 0.70
SmoothStepMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected