# Interpolation Calculation ## Modules to Import ``` import curves from '@ohos.curves' ``` ## Required Permissions None ## curves.init init\(curve?: Curve\): Object Implements initialization for the interpolation curve, which is used to create an interpolation curve object based on the input parameter. - Parameters
Step change at the start or end point of each interval. Defaults to true, indicating that the step change occurs at the end point. |
Horizontal coordinate of the first point on the Bezier curve. |
|||
Horizontal coordinate of the second point on the Bezier curve. |
|||
Vertical coordinate of the second point on the Bezier curve. |