# transform.h - [Overview](#section1344393400165629) - [Summary](#section1626555434165629) - [Data Structures](#nested-classes) - [Functions](#func-members) ## **Overview** **Related Modules:** [Graphic](Graphic.md) **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

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.