21 lines
302 B
Markdown
21 lines
302 B
Markdown
|
|
# Matrix4::RotationZ
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
static Matrix4 RotationZ(float radians)
|
||
|
|
```
|
||
|
|
|
||
|
|
创建绕 Z 轴旋转的矩阵。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `radians` - 旋转角度(弧度)
|
||
|
|
|
||
|
|
**返回:** `Matrix4` - 旋转矩阵
|
||
|
|
|
||
|
|
**复杂度:** O(1)
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
Matrix4 rotZ = Matrix4::RotationZ(Math::HALF_PI);
|
||
|
|
```
|