docs: update math API docs
This commit is contained in:
24
docs/api/math/matrix3/operator-mul-matrix3.md
Normal file
24
docs/api/math/matrix3/operator-mul-matrix3.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Matrix3::operator* (Matrix3)
|
||||
|
||||
```cpp
|
||||
Matrix3 operator*(const Matrix3& other) const
|
||||
```
|
||||
|
||||
矩阵乘法运算,将当前矩阵与另一个矩阵相乘。
|
||||
|
||||
**参数:**
|
||||
- `other` - 另一个矩阵
|
||||
|
||||
**返回:** `Matrix3` - 乘积矩阵
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Matrix3 rot = Matrix3::RotationZ(Math::Radians(45.0f));
|
||||
Matrix3 scale = Matrix3::Scale(Vector3(2.0f, 2.0f, 1.0f));
|
||||
|
||||
// 先缩放后旋转
|
||||
Matrix3 transform = rot * scale;
|
||||
```
|
||||
Reference in New Issue
Block a user