161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * 2D transformation matrix, supporting rotation, translation, and scaling of the X-axis and Y-axis
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2561847f8eSopenharmony_ci * @since 8
2661847f8eSopenharmony_ci */
2761847f8eSopenharmony_ci/**
2861847f8eSopenharmony_ci * 2D transformation matrix, supporting rotation, translation, and scaling of the X-axis and Y-axis
2961847f8eSopenharmony_ci *
3061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3161847f8eSopenharmony_ci * @form
3261847f8eSopenharmony_ci * @since 9
3361847f8eSopenharmony_ci */
3461847f8eSopenharmony_ci/**
3561847f8eSopenharmony_ci * 2D transformation matrix, supporting rotation, translation, and scaling of the X-axis and Y-axis
3661847f8eSopenharmony_ci *
3761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3861847f8eSopenharmony_ci * @crossplatform
3961847f8eSopenharmony_ci * @form
4061847f8eSopenharmony_ci * @since 10
4161847f8eSopenharmony_ci */
4261847f8eSopenharmony_ci/**
4361847f8eSopenharmony_ci * 2D transformation matrix, supporting rotation, translation, and scaling of the X-axis and Y-axis
4461847f8eSopenharmony_ci *
4561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4661847f8eSopenharmony_ci * @crossplatform
4761847f8eSopenharmony_ci * @form
4861847f8eSopenharmony_ci * @atomicservice
4961847f8eSopenharmony_ci * @since 11
5061847f8eSopenharmony_ci */
5161847f8eSopenharmony_cideclare class Matrix2D {
5261847f8eSopenharmony_ci  /**
5361847f8eSopenharmony_ci   * Horizontal Zoom
5461847f8eSopenharmony_ci   *
5561847f8eSopenharmony_ci   * @type { ?number }
5661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5761847f8eSopenharmony_ci   * @since 8
5861847f8eSopenharmony_ci   */
5961847f8eSopenharmony_ci  /**
6061847f8eSopenharmony_ci   * Horizontal Zoom
6161847f8eSopenharmony_ci   *
6261847f8eSopenharmony_ci   * @type { ?number }
6361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6461847f8eSopenharmony_ci   * @form
6561847f8eSopenharmony_ci   * @since 9
6661847f8eSopenharmony_ci   */
6761847f8eSopenharmony_ci  /**
6861847f8eSopenharmony_ci   * Horizontal Zoom
6961847f8eSopenharmony_ci   *
7061847f8eSopenharmony_ci   * @type { ?number }
7161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7261847f8eSopenharmony_ci   * @crossplatform
7361847f8eSopenharmony_ci   * @form
7461847f8eSopenharmony_ci   * @since 10
7561847f8eSopenharmony_ci   */
7661847f8eSopenharmony_ci  /**
7761847f8eSopenharmony_ci   * Horizontal Zoom
7861847f8eSopenharmony_ci   *
7961847f8eSopenharmony_ci   * @type { ?number }
8061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8161847f8eSopenharmony_ci   * @crossplatform
8261847f8eSopenharmony_ci   * @form
8361847f8eSopenharmony_ci   * @atomicservice
8461847f8eSopenharmony_ci   * @since 11
8561847f8eSopenharmony_ci   */
8661847f8eSopenharmony_ci  scaleX?: number;
8761847f8eSopenharmony_ci
8861847f8eSopenharmony_ci  /**
8961847f8eSopenharmony_ci   * Vertical Tilt
9061847f8eSopenharmony_ci   *
9161847f8eSopenharmony_ci   * @type { ?number }
9261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
9361847f8eSopenharmony_ci   * @since 8
9461847f8eSopenharmony_ci   */
9561847f8eSopenharmony_ci  /**
9661847f8eSopenharmony_ci   * Vertical Tilt
9761847f8eSopenharmony_ci   *
9861847f8eSopenharmony_ci   * @type { ?number }
9961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10061847f8eSopenharmony_ci   * @form
10161847f8eSopenharmony_ci   * @since 9
10261847f8eSopenharmony_ci   */
10361847f8eSopenharmony_ci  /**
10461847f8eSopenharmony_ci   * Vertical Tilt
10561847f8eSopenharmony_ci   *
10661847f8eSopenharmony_ci   * @type { ?number }
10761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10861847f8eSopenharmony_ci   * @crossplatform
10961847f8eSopenharmony_ci   * @form
11061847f8eSopenharmony_ci   * @since 10
11161847f8eSopenharmony_ci   */
11261847f8eSopenharmony_ci  /**
11361847f8eSopenharmony_ci   * Vertical Tilt
11461847f8eSopenharmony_ci   *
11561847f8eSopenharmony_ci   * @type { ?number }
11661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11761847f8eSopenharmony_ci   * @crossplatform
11861847f8eSopenharmony_ci   * @form
11961847f8eSopenharmony_ci   * @atomicservice
12061847f8eSopenharmony_ci   * @since 11
12161847f8eSopenharmony_ci   */
12261847f8eSopenharmony_ci  rotateY?: number;
12361847f8eSopenharmony_ci
12461847f8eSopenharmony_ci  /**
12561847f8eSopenharmony_ci   * Horizontal Tilt
12661847f8eSopenharmony_ci   *
12761847f8eSopenharmony_ci   * @type { ?number }
12861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12961847f8eSopenharmony_ci   * @since 8
13061847f8eSopenharmony_ci   */
13161847f8eSopenharmony_ci  /**
13261847f8eSopenharmony_ci   * Horizontal Tilt
13361847f8eSopenharmony_ci   *
13461847f8eSopenharmony_ci   * @type { ?number }
13561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13661847f8eSopenharmony_ci   * @form
13761847f8eSopenharmony_ci   * @since 9
13861847f8eSopenharmony_ci   */
13961847f8eSopenharmony_ci  /**
14061847f8eSopenharmony_ci   * Horizontal Tilt
14161847f8eSopenharmony_ci   *
14261847f8eSopenharmony_ci   * @type { ?number }
14361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14461847f8eSopenharmony_ci   * @crossplatform
14561847f8eSopenharmony_ci   * @form
14661847f8eSopenharmony_ci   * @since 10
14761847f8eSopenharmony_ci   */
14861847f8eSopenharmony_ci  /**
14961847f8eSopenharmony_ci   * Horizontal Tilt
15061847f8eSopenharmony_ci   *
15161847f8eSopenharmony_ci   * @type { ?number }
15261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
15361847f8eSopenharmony_ci   * @crossplatform
15461847f8eSopenharmony_ci   * @form
15561847f8eSopenharmony_ci   * @atomicservice
15661847f8eSopenharmony_ci   * @since 11
15761847f8eSopenharmony_ci   */
15861847f8eSopenharmony_ci  rotateX?: number;
15961847f8eSopenharmony_ci
16061847f8eSopenharmony_ci  /**
16161847f8eSopenharmony_ci   * Vertical Zoom
16261847f8eSopenharmony_ci   *
16361847f8eSopenharmony_ci   * @type { ?number }
16461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16561847f8eSopenharmony_ci   * @since 8
16661847f8eSopenharmony_ci   */
16761847f8eSopenharmony_ci  /**
16861847f8eSopenharmony_ci   * Vertical Zoom
16961847f8eSopenharmony_ci   *
17061847f8eSopenharmony_ci   * @type { ?number }
17161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17261847f8eSopenharmony_ci   * @form
17361847f8eSopenharmony_ci   * @since 9
17461847f8eSopenharmony_ci   */
17561847f8eSopenharmony_ci  /**
17661847f8eSopenharmony_ci   * Vertical Zoom
17761847f8eSopenharmony_ci   *
17861847f8eSopenharmony_ci   * @type { ?number }
17961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18061847f8eSopenharmony_ci   * @crossplatform
18161847f8eSopenharmony_ci   * @form
18261847f8eSopenharmony_ci   * @since 10
18361847f8eSopenharmony_ci   */
18461847f8eSopenharmony_ci  /**
18561847f8eSopenharmony_ci   * Vertical Zoom
18661847f8eSopenharmony_ci   *
18761847f8eSopenharmony_ci   * @type { ?number }
18861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18961847f8eSopenharmony_ci   * @crossplatform
19061847f8eSopenharmony_ci   * @form
19161847f8eSopenharmony_ci   * @atomicservice
19261847f8eSopenharmony_ci   * @since 11
19361847f8eSopenharmony_ci   */
19461847f8eSopenharmony_ci  scaleY?: number;
19561847f8eSopenharmony_ci
19661847f8eSopenharmony_ci  /**
19761847f8eSopenharmony_ci   * Horizontal movement
19861847f8eSopenharmony_ci   *
19961847f8eSopenharmony_ci   * @type { ?number }
20061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20161847f8eSopenharmony_ci   * @since 8
20261847f8eSopenharmony_ci   */
20361847f8eSopenharmony_ci  /**
20461847f8eSopenharmony_ci   * Horizontal movement
20561847f8eSopenharmony_ci   *
20661847f8eSopenharmony_ci   * @type { ?number }
20761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20861847f8eSopenharmony_ci   * @form
20961847f8eSopenharmony_ci   * @since 9
21061847f8eSopenharmony_ci   */
21161847f8eSopenharmony_ci  /**
21261847f8eSopenharmony_ci   * Horizontal movement
21361847f8eSopenharmony_ci   *
21461847f8eSopenharmony_ci   * @type { ?number }
21561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21661847f8eSopenharmony_ci   * @crossplatform
21761847f8eSopenharmony_ci   * @form
21861847f8eSopenharmony_ci   * @since 10
21961847f8eSopenharmony_ci   */
22061847f8eSopenharmony_ci  /**
22161847f8eSopenharmony_ci   * Horizontal movement
22261847f8eSopenharmony_ci   *
22361847f8eSopenharmony_ci   * @type { ?number }
22461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22561847f8eSopenharmony_ci   * @crossplatform
22661847f8eSopenharmony_ci   * @form
22761847f8eSopenharmony_ci   * @atomicservice
22861847f8eSopenharmony_ci   * @since 11
22961847f8eSopenharmony_ci   */
23061847f8eSopenharmony_ci  translateX?: number;
23161847f8eSopenharmony_ci
23261847f8eSopenharmony_ci  /**
23361847f8eSopenharmony_ci   * Vertical movement
23461847f8eSopenharmony_ci   *
23561847f8eSopenharmony_ci   * @type { ?number }
23661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23761847f8eSopenharmony_ci   * @since 8
23861847f8eSopenharmony_ci   */
23961847f8eSopenharmony_ci  /**
24061847f8eSopenharmony_ci   * Vertical movement
24161847f8eSopenharmony_ci   *
24261847f8eSopenharmony_ci   * @type { ?number }
24361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24461847f8eSopenharmony_ci   * @form
24561847f8eSopenharmony_ci   * @since 9
24661847f8eSopenharmony_ci   */
24761847f8eSopenharmony_ci  /**
24861847f8eSopenharmony_ci   * Vertical movement
24961847f8eSopenharmony_ci   *
25061847f8eSopenharmony_ci   * @type { ?number }
25161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25261847f8eSopenharmony_ci   * @crossplatform
25361847f8eSopenharmony_ci   * @form
25461847f8eSopenharmony_ci   * @since 10
25561847f8eSopenharmony_ci   */
25661847f8eSopenharmony_ci  /**
25761847f8eSopenharmony_ci   * Vertical movement
25861847f8eSopenharmony_ci   *
25961847f8eSopenharmony_ci   * @type { ?number }
26061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26161847f8eSopenharmony_ci   * @crossplatform
26261847f8eSopenharmony_ci   * @form
26361847f8eSopenharmony_ci   * @atomicservice
26461847f8eSopenharmony_ci   * @since 11
26561847f8eSopenharmony_ci   */
26661847f8eSopenharmony_ci  translateY?: number;
26761847f8eSopenharmony_ci
26861847f8eSopenharmony_ci  /**
26961847f8eSopenharmony_ci   * Transforms the current 2D matrix back to the identity matrix (i.e., without any rotational
27061847f8eSopenharmony_ci   * translation scaling effect)
27161847f8eSopenharmony_ci   *
27261847f8eSopenharmony_ci   * @returns { Matrix2D }
27361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27461847f8eSopenharmony_ci   * @since 8
27561847f8eSopenharmony_ci   */
27661847f8eSopenharmony_ci  /**
27761847f8eSopenharmony_ci   * Transforms the current 2D matrix back to the identity matrix (i.e., without any rotational
27861847f8eSopenharmony_ci   * translation scaling effect)
27961847f8eSopenharmony_ci   *
28061847f8eSopenharmony_ci   * @returns { Matrix2D }
28161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28261847f8eSopenharmony_ci   * @form
28361847f8eSopenharmony_ci   * @since 9
28461847f8eSopenharmony_ci   */
28561847f8eSopenharmony_ci  /**
28661847f8eSopenharmony_ci   * Transforms the current 2D matrix back to the identity matrix (i.e., without any rotational
28761847f8eSopenharmony_ci   * translation scaling effect)
28861847f8eSopenharmony_ci   *
28961847f8eSopenharmony_ci   * @returns { Matrix2D }
29061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
29161847f8eSopenharmony_ci   * @crossplatform
29261847f8eSopenharmony_ci   * @form
29361847f8eSopenharmony_ci   * @since 10
29461847f8eSopenharmony_ci   */
29561847f8eSopenharmony_ci  /**
29661847f8eSopenharmony_ci   * Transforms the current 2D matrix back to the identity matrix (i.e., without any rotational
29761847f8eSopenharmony_ci   * translation scaling effect)
29861847f8eSopenharmony_ci   *
29961847f8eSopenharmony_ci   * @returns { Matrix2D }
30061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30161847f8eSopenharmony_ci   * @crossplatform
30261847f8eSopenharmony_ci   * @form
30361847f8eSopenharmony_ci   * @atomicservice
30461847f8eSopenharmony_ci   * @since 11
30561847f8eSopenharmony_ci   */
30661847f8eSopenharmony_ci  identity(): Matrix2D;
30761847f8eSopenharmony_ci
30861847f8eSopenharmony_ci  /**
30961847f8eSopenharmony_ci   * Transform the current 2D matrix into an inverse matrix (that is, the transformation effect
31061847f8eSopenharmony_ci   * is the opposite effect of the original)
31161847f8eSopenharmony_ci   *
31261847f8eSopenharmony_ci   * @returns { Matrix2D }
31361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
31461847f8eSopenharmony_ci   * @since 8
31561847f8eSopenharmony_ci   */
31661847f8eSopenharmony_ci  /**
31761847f8eSopenharmony_ci   * Transform the current 2D matrix into an inverse matrix (that is, the transformation effect
31861847f8eSopenharmony_ci   * is the opposite effect of the original)
31961847f8eSopenharmony_ci   *
32061847f8eSopenharmony_ci   * @returns { Matrix2D }
32161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32261847f8eSopenharmony_ci   * @form
32361847f8eSopenharmony_ci   * @since 9
32461847f8eSopenharmony_ci   */
32561847f8eSopenharmony_ci  /**
32661847f8eSopenharmony_ci   * Transform the current 2D matrix into an inverse matrix (that is, the transformation effect
32761847f8eSopenharmony_ci   * is the opposite effect of the original)
32861847f8eSopenharmony_ci   *
32961847f8eSopenharmony_ci   * @returns { Matrix2D }
33061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
33161847f8eSopenharmony_ci   * @crossplatform
33261847f8eSopenharmony_ci   * @form
33361847f8eSopenharmony_ci   * @since 10
33461847f8eSopenharmony_ci   */
33561847f8eSopenharmony_ci  /**
33661847f8eSopenharmony_ci   * Transform the current 2D matrix into an inverse matrix (that is, the transformation effect
33761847f8eSopenharmony_ci   * is the opposite effect of the original)
33861847f8eSopenharmony_ci   *
33961847f8eSopenharmony_ci   * @returns { Matrix2D }
34061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34161847f8eSopenharmony_ci   * @crossplatform
34261847f8eSopenharmony_ci   * @form
34361847f8eSopenharmony_ci   * @atomicservice
34461847f8eSopenharmony_ci   * @since 11
34561847f8eSopenharmony_ci   */
34661847f8eSopenharmony_ci  invert(): Matrix2D;
34761847f8eSopenharmony_ci
34861847f8eSopenharmony_ci  /**
34961847f8eSopenharmony_ci   * The matrix is superimposed in right multiplication mode. When the input parameter is empty,
35061847f8eSopenharmony_ci   * the matrix is superimposed.
35161847f8eSopenharmony_ci   *
35261847f8eSopenharmony_ci   * @param { Matrix2D } other - Matrix to be superimposed
35361847f8eSopenharmony_ci   * @returns { Matrix2D }
35461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35561847f8eSopenharmony_ci   * @since 8
35661847f8eSopenharmony_ci   */
35761847f8eSopenharmony_ci  /**
35861847f8eSopenharmony_ci   * The matrix is superimposed in right multiplication mode. When the input parameter is empty,
35961847f8eSopenharmony_ci   * the matrix is superimposed.
36061847f8eSopenharmony_ci   *
36161847f8eSopenharmony_ci   * @param { Matrix2D } other - Matrix to be superimposed
36261847f8eSopenharmony_ci   * @returns { Matrix2D }
36361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
36461847f8eSopenharmony_ci   * @form
36561847f8eSopenharmony_ci   * @since 9
36661847f8eSopenharmony_ci   * @deprecated since 10
36761847f8eSopenharmony_ci   */
36861847f8eSopenharmony_ci  multiply(other?: Matrix2D): Matrix2D;
36961847f8eSopenharmony_ci
37061847f8eSopenharmony_ci  /**
37161847f8eSopenharmony_ci   * Adds the rotation effect of the X and Y axes to the current matrix.
37261847f8eSopenharmony_ci   *
37361847f8eSopenharmony_ci   * @param { number } rx - Rotation effect of the X-axis
37461847f8eSopenharmony_ci   * @param { number } ry - Rotation effect of the Y-axis
37561847f8eSopenharmony_ci   * @returns { Matrix2D }
37661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
37761847f8eSopenharmony_ci   * @since 8
37861847f8eSopenharmony_ci   */
37961847f8eSopenharmony_ci  /**
38061847f8eSopenharmony_ci   * Adds the rotation effect of the X and Y axes to the current matrix.
38161847f8eSopenharmony_ci   *
38261847f8eSopenharmony_ci   * @param { number } rx - Rotation effect of the X-axis
38361847f8eSopenharmony_ci   * @param { number } ry - Rotation effect of the Y-axis
38461847f8eSopenharmony_ci   * @returns { Matrix2D }
38561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
38661847f8eSopenharmony_ci   * @form
38761847f8eSopenharmony_ci   * @since 9
38861847f8eSopenharmony_ci   * @deprecated since 10
38961847f8eSopenharmony_ci   * @useinstead rotate
39061847f8eSopenharmony_ci   */
39161847f8eSopenharmony_ci  rotate(rx?: number, ry?: number): Matrix2D;
39261847f8eSopenharmony_ci
39361847f8eSopenharmony_ci  /**
39461847f8eSopenharmony_ci   * Adds the rotation effect of the X and Y axes to the current matrix.
39561847f8eSopenharmony_ci   *
39661847f8eSopenharmony_ci   * @param { number } degree - The rotation angle, clockwise in radians.
39761847f8eSopenharmony_ci   * @param { number } rx - Rotation effect of the X-axis
39861847f8eSopenharmony_ci   * @param { number } ry - Rotation effect of the Y-axis
39961847f8eSopenharmony_ci   * @returns { Matrix2D }
40061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40161847f8eSopenharmony_ci   * @crossplatform
40261847f8eSopenharmony_ci   * @form
40361847f8eSopenharmony_ci   * @since 10
40461847f8eSopenharmony_ci   */
40561847f8eSopenharmony_ci  /**
40661847f8eSopenharmony_ci   * Adds the rotation effect of the X and Y axes to the current matrix.
40761847f8eSopenharmony_ci   *
40861847f8eSopenharmony_ci   * @param { number } degree - The rotation angle, clockwise in radians.
40961847f8eSopenharmony_ci   * @param { number } rx - Rotation effect of the X-axis
41061847f8eSopenharmony_ci   * @param { number } ry - Rotation effect of the Y-axis
41161847f8eSopenharmony_ci   * @returns { Matrix2D }
41261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41361847f8eSopenharmony_ci   * @crossplatform
41461847f8eSopenharmony_ci   * @form
41561847f8eSopenharmony_ci   * @atomicservice
41661847f8eSopenharmony_ci   * @since 11
41761847f8eSopenharmony_ci   */
41861847f8eSopenharmony_ci  rotate(degree: number, rx?: number, ry?: number): Matrix2D;
41961847f8eSopenharmony_ci
42061847f8eSopenharmony_ci  /**
42161847f8eSopenharmony_ci   * Adds the translation effect of the X and Y axes to the current matrix.
42261847f8eSopenharmony_ci   *
42361847f8eSopenharmony_ci   * @param { number } tx - X-axis translation effect
42461847f8eSopenharmony_ci   * @param { number } ty - Y-axis translation effect
42561847f8eSopenharmony_ci   * @returns { Matrix2D }
42661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42761847f8eSopenharmony_ci   * @since 8
42861847f8eSopenharmony_ci   */
42961847f8eSopenharmony_ci  /**
43061847f8eSopenharmony_ci   * Adds the translation effect of the X and Y axes to the current matrix.
43161847f8eSopenharmony_ci   *
43261847f8eSopenharmony_ci   * @param { number } tx - X-axis translation effect
43361847f8eSopenharmony_ci   * @param { number } ty - Y-axis translation effect
43461847f8eSopenharmony_ci   * @returns { Matrix2D }
43561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43661847f8eSopenharmony_ci   * @form
43761847f8eSopenharmony_ci   * @since 9
43861847f8eSopenharmony_ci   */
43961847f8eSopenharmony_ci  /**
44061847f8eSopenharmony_ci   * Adds the translation effect of the X and Y axes to the current matrix.
44161847f8eSopenharmony_ci   *
44261847f8eSopenharmony_ci   * @param { number } tx - X-axis translation effect
44361847f8eSopenharmony_ci   * @param { number } ty - Y-axis translation effect
44461847f8eSopenharmony_ci   * @returns { Matrix2D }
44561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44661847f8eSopenharmony_ci   * @crossplatform
44761847f8eSopenharmony_ci   * @form
44861847f8eSopenharmony_ci   * @since 10
44961847f8eSopenharmony_ci   */
45061847f8eSopenharmony_ci  /**
45161847f8eSopenharmony_ci   * Adds the translation effect of the X and Y axes to the current matrix.
45261847f8eSopenharmony_ci   *
45361847f8eSopenharmony_ci   * @param { number } tx - X-axis translation effect
45461847f8eSopenharmony_ci   * @param { number } ty - Y-axis translation effect
45561847f8eSopenharmony_ci   * @returns { Matrix2D }
45661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
45761847f8eSopenharmony_ci   * @crossplatform
45861847f8eSopenharmony_ci   * @form
45961847f8eSopenharmony_ci   * @atomicservice
46061847f8eSopenharmony_ci   * @since 11
46161847f8eSopenharmony_ci   */
46261847f8eSopenharmony_ci  translate(tx?: number, ty?: number): Matrix2D;
46361847f8eSopenharmony_ci
46461847f8eSopenharmony_ci  /**
46561847f8eSopenharmony_ci   * Adds the scaling effect of the X and Y axes to the current matrix.
46661847f8eSopenharmony_ci   *
46761847f8eSopenharmony_ci   * @param { number } sx - X-axis scaling effect
46861847f8eSopenharmony_ci   * @param { number } sy - Y-axis scaling effect
46961847f8eSopenharmony_ci   * @returns { Matrix2D }
47061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47161847f8eSopenharmony_ci   * @since 8
47261847f8eSopenharmony_ci   */
47361847f8eSopenharmony_ci  /**
47461847f8eSopenharmony_ci   * Adds the scaling effect of the X and Y axes to the current matrix.
47561847f8eSopenharmony_ci   *
47661847f8eSopenharmony_ci   * @param { number } sx - X-axis scaling effect
47761847f8eSopenharmony_ci   * @param { number } sy - Y-axis scaling effect
47861847f8eSopenharmony_ci   * @returns { Matrix2D }
47961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48061847f8eSopenharmony_ci   * @form
48161847f8eSopenharmony_ci   * @since 9
48261847f8eSopenharmony_ci   */
48361847f8eSopenharmony_ci  /**
48461847f8eSopenharmony_ci   * Adds the scaling effect of the X and Y axes to the current matrix.
48561847f8eSopenharmony_ci   *
48661847f8eSopenharmony_ci   * @param { number } sx - X-axis scaling effect
48761847f8eSopenharmony_ci   * @param { number } sy - Y-axis scaling effect
48861847f8eSopenharmony_ci   * @returns { Matrix2D }
48961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49061847f8eSopenharmony_ci   * @crossplatform
49161847f8eSopenharmony_ci   * @form
49261847f8eSopenharmony_ci   * @since 10
49361847f8eSopenharmony_ci   */
49461847f8eSopenharmony_ci  /**
49561847f8eSopenharmony_ci   * Adds the scaling effect of the X and Y axes to the current matrix.
49661847f8eSopenharmony_ci   *
49761847f8eSopenharmony_ci   * @param { number } sx - X-axis scaling effect
49861847f8eSopenharmony_ci   * @param { number } sy - Y-axis scaling effect
49961847f8eSopenharmony_ci   * @returns { Matrix2D }
50061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50161847f8eSopenharmony_ci   * @crossplatform
50261847f8eSopenharmony_ci   * @form
50361847f8eSopenharmony_ci   * @atomicservice
50461847f8eSopenharmony_ci   * @since 11
50561847f8eSopenharmony_ci   */
50661847f8eSopenharmony_ci  scale(sx?: number, sy?: number): Matrix2D;
50761847f8eSopenharmony_ci
50861847f8eSopenharmony_ci  /**
50961847f8eSopenharmony_ci   * Constructs a 2D change matrix object. The default value is the unit matrix.
51061847f8eSopenharmony_ci   *
51161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51261847f8eSopenharmony_ci   * @crossplatform
51361847f8eSopenharmony_ci   * @form
51461847f8eSopenharmony_ci   * @since 10
51561847f8eSopenharmony_ci   */
51661847f8eSopenharmony_ci  /**
51761847f8eSopenharmony_ci   * Constructs a 2D change matrix object. The default value is the unit matrix.
51861847f8eSopenharmony_ci   *
51961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52061847f8eSopenharmony_ci   * @crossplatform
52161847f8eSopenharmony_ci   * @form
52261847f8eSopenharmony_ci   * @atomicservice
52361847f8eSopenharmony_ci   * @since 11
52461847f8eSopenharmony_ci   */
52561847f8eSopenharmony_ci  constructor();
52661847f8eSopenharmony_ci
52761847f8eSopenharmony_ci  /**
52861847f8eSopenharmony_ci   * Constructs a 2D change matrix object. The default value is the unit matrix.
52961847f8eSopenharmony_ci   *
53061847f8eSopenharmony_ci   * @param { LengthMetricsUnit } [unit] - the unit mode
53161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
53261847f8eSopenharmony_ci   * @crossplatform
53361847f8eSopenharmony_ci   * @form
53461847f8eSopenharmony_ci   * @atomicservice
53561847f8eSopenharmony_ci   * @since 12
53661847f8eSopenharmony_ci   */
53761847f8eSopenharmony_ci  constructor(unit: LengthMetricsUnit);
53861847f8eSopenharmony_ci}
539