1# ArkUI_RotationOptions
2
3
4## Overview
5
6Defines the rotation options for component transition.
7
8**Since**: 12
9
10**Related module**: [ArkUI_NativeModule](_ark_u_i___native_module.md)
11
12
13## Summary
14
15
16### Member Variables
17
18| Parameter| Description|
19| -------- | -------- |
20| float [x](#x) | X-component of the rotation vector. |
21| float [y](#y) | Y-component of the rotation vector. |
22| float [z](#z) | Z-component of the rotation vector. |
23| float [angle](#angle) | Angle to rotate. |
24| float [centerX](#centerx) | X-coordinate of the center point. |
25| float [centerY](#centery) | Y-coordinate of the center point. |
26| float [centerZ](#centerz) | Z-axis anchor, that is, the z-component of the 3D rotation center point. |
27| float [perspective](#perspective) | Distance from the user to the z=0 plane. |
28
29
30## Member Variable Description
31
32
33### angle
34
35```
36float ArkUI_RotationOptions::angle
37```
38**Description**
39
40Rotation angle.
41
42
43### centerX
44
45```
46float ArkUI_RotationOptions::centerX
47```
48**Description**
49
50X-coordinate of the center point.
51
52
53### centerY
54
55```
56float ArkUI_RotationOptions::centerY
57```
58**Description**
59
60Y-coordinate of the center point.
61
62
63### centerZ
64
65```
66float ArkUI_RotationOptions::centerZ
67```
68**Description**
69
70Z-axis anchor, that is, the z-component of the 3D rotation center point.
71
72
73### perspective
74
75```
76float ArkUI_RotationOptions::perspective
77```
78**Description**
79
80Distance from the user to the z=0 plane.
81
82
83### x
84
85```
86float ArkUI_RotationOptions::x
87```
88**Description**
89
90X-component of the rotation vector.
91
92
93### y
94
95```
96float ArkUI_RotationOptions::y
97```
98**Description**
99
100Y-component of the rotation vector.
101
102
103### z
104
105```
106float ArkUI_RotationOptions::z
107```
108**Description**
109
110Z-component of the rotation vector.
111