Files
XCSDD/docs/api/math/matrix4/rotationz.md

21 lines
302 B
Markdown
Raw Normal View History

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