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.