docs: update math API docs
This commit is contained in:
24
docs/api/math/matrix3/rotation-z.md
Normal file
24
docs/api/math/matrix3/rotation-z.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Matrix3::RotationZ
|
||||
|
||||
```cpp
|
||||
static Matrix3 RotationZ(float radians)
|
||||
```
|
||||
|
||||
返回绕 Z 轴旋转的 3x3 旋转矩阵。
|
||||
|
||||
**参数:**
|
||||
- `radians` - 旋转角度(弧度)
|
||||
|
||||
**返回:** `Matrix3` - 绕 Z 轴旋转的矩阵
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Matrix3 rotZ = Matrix3::RotationZ(Math::Radians(45.0f));
|
||||
// 结果(绕 Z 轴旋转 45 度):
|
||||
// [ 0.707 -0.707 0]
|
||||
// [ 0.707 0.707 0]
|
||||
// [ 0 0 1]
|
||||
```
|
||||
Reference in New Issue
Block a user