Files
XCEngine/docs/api/math/matrix3/operator-mul-matrix3.md
2026-03-20 02:35:15 +08:00

458 B

Matrix3::operator* (Matrix3)

Matrix3 operator*(const Matrix3& other) const

矩阵乘法运算,将当前矩阵与另一个矩阵相乘。

参数:

  • other - 另一个矩阵

返回: Matrix3 - 乘积矩阵

复杂度: O(1)

示例:

Matrix3 rot = Matrix3::RotationZ(Math::Radians(45.0f));
Matrix3 scale = Matrix3::Scale(Vector3(2.0f, 2.0f, 1.0f));

// 先缩放后旋转
Matrix3 transform = rot * scale;