smoothStep function

double smoothStep(
  1. double x
)

Implementation

double smoothStep(double x) {
  final c = clamp01(x);
  return c * c * (3 - 2 * c);
}