From b7aad5262925a5f5f2703b1c9b2d5732e5a72809 Mon Sep 17 00:00:00 2001 From: tianyu Date: Fri, 2 Sep 2022 10:44:58 +0800 Subject: [PATCH] uodate docs Signed-off-by: tianyu --- .../reference/arkui-ts/ts-matrix-transformation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-matrix-transformation.md b/zh-cn/application-dev/reference/arkui-ts/ts-matrix-transformation.md index eacf5672a6..0cc8f66a7e 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-matrix-transformation.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-matrix-transformation.md @@ -82,11 +82,11 @@ Matrix的初始化函数,可以返回一个单位矩阵对象。 ```ts // matrix1 和 matrix2 效果一致 import matrix4 from '@ohos.matrix4' - let matrix = Matrix4.init([1.0, 0.0, 0.0, 0.0, + let matrix = matrix4.init([1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]) - let matrix2 = Matrix4.identity() + let matrix2 = matrix4.identity() ``` @@ -191,7 +191,7 @@ Matrix的逆函数,可以返回一个当前矩阵对象的逆矩阵,即效 ```ts import matrix4 from '@ohos.matrix4' // matrix1(宽放大2倍) 和 matrix2(宽缩小2倍) 效果相反 - let matrix1 = Matrix4.identity().scale({x:2}) + let matrix1 = matrix4.identity().scale({x:2}) let matrix2 = matrix1.copy().invert() ``` -- GitLab