Function Curve.interpolate

Returns the Y value for the point that would exist at the X position offset along the curve.

double interpolate (
  const(double) offset
) nothrow @nogc const;