1 Star 0 Fork 5.4K

OpenHarmony_EU incubator / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ohos-matrix3-t.md 9.19 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

OHOS::Matrix3< T >

Overview

Related Modules:

Graphic

Description:

Defines a 3 x 3 matrix.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Public Member Function Name

Description

Matrix3 ()

Defines a Matrix3 instance and initializes the 3 x 3 matrix data.

Matrix3 (T m00, T m01, T m02, T m10, T m11, T m12, T m20, T m21, T m22)

Defines a Matrix3 instance and initializes the 3 x 3 matrix data.

~Matrix3 ()

A destructor used to delete the Matrix3 instance.

GetData () const

const T *

Obtains the 3 x 3 matrix data.

Determinant () const

T

Obtains the determinant of the matrix.

Inverse () const

Matrix3

Obtains the inverse matrix.

operator new (size_t size)

void *

Overrides the new function.

operator delete (void *p)

void

Overrides the delete function.

Static Public Member Functions

Static Public Member Function Name

Description

Rotate (T angle, const Vector2< T > &pivot)

static Matrix3

Obtains a rotation matrix. After a matrix is rotated, its data is shifted leftwards by 15 bits. Therefore, the result data needs to be shifted rightwards by 15 bits.

Scale (const Vector2< T > &scale, const Vector2< T > &fixed)

static Matrix3

Obtains the scaling matrix. After a matrix is scaled, its data is shifted leftwards by 8 bits. Therefore, the result data needs to be shifted rightwards by 8 bits.

Translate (const Vector2< T > &trans)

static Matrix3< T >

Obtains a matrix translation.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/open-harmony-eu-incubator/docs.git
git@gitee.com:open-harmony-eu-incubator/docs.git
open-harmony-eu-incubator
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891