Multiply#
-
inline Matrix22 Multiply(float s, const Matrix22 &m)#
Multiplies a 2x2 matrix by a scalar value.
Performs element-wise multiplication of the matrix by the scalar. Each element of the resulting matrix equals the corresponding element of the input matrix multiplied by the scalar.
- Parameters:
s – [in] Scalar value to multiply with
m – [in] Matrix to be multiplied
- Returns:
New matrix with all elements multiplied by the scalar