mathSmoothStep

Smooth Hermite interpolation between 0 and 1. Takes edge0 (lower edge), edge1 (upper edge), x (input value). Returns a smooth interpolation between 0 and 1 using Hermite polynomial.

Mathematics

Parameters & Returns

Parameters

edge0 Double
edge1 Double
x Double

Returns

Double

Quick Summary

Smooth Hermite interpolation between 0 and 1. Takes edge0 (lower edge), edge1 (upper edge), x (input value). Returns a smooth interpolation between 0 and 1 using Hermite polynomial.

Technical Exegesis...

Returns a smooth interpolation between 0 and 1 using Hermite polynomial (3t^2 - 2t^3). The input x is first mapped from [edge0, edge1] to [0, 1] and clamped.

Creates smooth ease-in and ease-out transitions, commonly used for smoother animations than linear interpolation. The result has zero velocity at both edges.

Example

Example.bam
; No example implemented yet