未验证 提交 e83c40e6 编写于 作者: K king_he 提交者: Gitee

update en/application-dev/reference/arkui-ts/ts-interpolation-calculation.md.

Signed-off-by: Nking_he <6384784@qq.com>
上级 d1bebffb
...@@ -21,6 +21,7 @@ init(curve?: Curve): Object ...@@ -21,6 +21,7 @@ init(curve?: Curve): Object
Implements initialization for the interpolation curve, which is used to create an interpolation curve object based on the input parameter. Implements initialization for the interpolation curve, which is used to create an interpolation curve object based on the input parameter.
- Parameters - Parameters
| Name | Type | Mandatory | Default Value | Description | | Name | Type | Mandatory | Default Value | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| curve | Curve | No | Linear | Curve object. | | curve | Curve | No | Linear | Curve object. |
...@@ -35,6 +36,7 @@ steps(count: number, end: boolean): Object ...@@ -35,6 +36,7 @@ steps(count: number, end: boolean): Object
Constructs a step curve object. Constructs a step curve object.
- Parameters - Parameters
| Name | Type | Mandatory | Default Value | Description | | Name | Type | Mandatory | Default Value | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| count | number | Yes | - | Number of steps. The value must be a positive integer. | | count | number | Yes | - | Number of steps. The value must be a positive integer. |
...@@ -51,6 +53,7 @@ cubicBezier(x1: number, y1: number, x2: number, y2: number): Object ...@@ -51,6 +53,7 @@ cubicBezier(x1: number, y1: number, x2: number, y2: number): Object
Constructs a third-order Bezier curve object. The curve value must be between 0 and 1. Constructs a third-order Bezier curve object. The curve value must be between 0 and 1.
1. Parameters 1. Parameters
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| ---- | ------ | --------- | -------------------------------------------------------------- | | ---- | ------ | --------- | -------------------------------------------------------------- |
| x1 | number | Yes | Horizontal coordinate of the first point on the Bezier curve. | | x1 | number | Yes | Horizontal coordinate of the first point on the Bezier curve. |
...@@ -69,6 +72,7 @@ spring(velocity: number, mass: number, stiffness: number, damping: number): Obje ...@@ -69,6 +72,7 @@ spring(velocity: number, mass: number, stiffness: number, damping: number): Obje
Constructs a spring curve object. Constructs a spring curve object.
1. Parameters 1. Parameters
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| --------- | ------ | --------- | ----------------- | | --------- | ------ | --------- | ----------------- |
| velocity | number | Yes | Initial velocity. | | velocity | number | Yes | Initial velocity. |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册