Add in place (modifies this instance for better performance) 就地相加(修改当前实例以提高性能)
Create a copy of this matrix 创建此矩阵的副本
Calculate the determinant of this matrix 计算此矩阵的行列式
Check if this matrix equals another matrix 检查此矩阵是否等于另一个矩阵
Calculate the inverse of this matrix 计算此矩阵的逆矩阵
Check if this matrix is the identity matrix 检查此矩阵是否为单位矩阵
Subtract in place (modifies this instance for better performance) 就地相减(修改当前实例以提高性能)
Convert to a regular number array [m00, m01, m10, m11] 转换为普通数字数组 [m00, m01, m10, m11]
Convert to string representation 转换为字符串表示
Calculate the trace (sum of diagonal elements) of this matrix 计算此矩阵的迹(对角线元素之和)
Transpose this matrix 转置此矩阵
Static
fromCreate a matrix from an array [m00, m01, m10, m11] 从数组创建矩阵 [m00, m01, m10, m11]
Static
identityCreate an identity matrix 创建单位矩阵
Static
rotationCreate a rotation matrix 创建旋转矩阵
Rotation angle in radians
Static
scalingStatic
shearCreate a shear matrix 创建剪切矩阵
Static
zeroCreate a zero matrix 创建零矩阵
2x2 Matrix using fixed-point arithmetic for deterministic calculations 使用定点算术的2x2矩阵,用于确定性计算
Matrix layout: | m00 m01 | | m10 m11 |