1 Star 0 Fork 4.9K

Lin_bruin / docs

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

transform.h

Overview

Related Modules:

Graphic

Description:

Provides functions to transform components, points, and line segments, including rotation and scaling.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

OHOS::TransformMap

Transforms a rectangle, including rotation and scaling.

Functions

Function Name

Description

OHOS::Rotate (const Vector2< int16_t > &point, int16_t angle, const Vector2< int16_t > &pivot, Vector2< int16_t > &out)

void 

Rotates a point around the pivot by a certain angle.

OHOS::Rotate (const Line &origLine, int16_t angle, const Vector2< int16_t > &pivot, Line &out)

void 

Rotates a line around the pivot by a certain angle.

OHOS::Rotate (const Rect &origRect, int16_t angle, const Vector2< int16_t > &pivot, Polygon &out)

void 

Rotates a rectangle around the pivot by a certain angle.

1
https://gitee.com/dreaminghell/docs.git
git@gitee.com:dreaminghell/docs.git
dreaminghell
docs
docs
master

搜索帮助