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

21 lines
302 B
Markdown
Raw Normal View History

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