Harmony/OpenHarmony应用开发-矩阵变换
可对图形进行平移、旋转和缩放等。说明:从APIVersion7开始支持。开发语言ets.导入模块:importmatrix4from'ohos.matrix4'示例代码:importmatrix4from'ohos.matrix4';创建一个四阶矩阵letmatrix1matrix4.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])letmatrix2matrix4.identity()EntryComponentstructMatrixTransformation{privatematrix1matrix4.identity().translate({x:100})privatematrix2th...