PyDDM.utils.smoothstep

Contents

PyDDM.utils.smoothstep#

smoothstep(edge0, edge1, x)#

Performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1.

Parameters:
  • edge0 – The left edge of the transition.

  • edge1 – The right edge of the transition.

  • x – The input value.

Returns:

A value between 0 and 1, smoothly interpolated.