public static Negate ( Matrix2x2 &matrix, Matrix2x2 &result ) : void | ||
matrix | Matrix2x2 | Matrix to negate. |
result | Matrix2x2 | Negated matrix. |
return | void |
public static void Negate(ref Matrix2x2 matrix, out Matrix2x2 result)
{
float m11 = -matrix.M11;
float m12 = -matrix.M12;
float m21 = -matrix.M21;
float m22 = -matrix.M22;
result.M11 = m11;
result.M12 = m12;
result.M21 = m21;
result.M22 = m22;
}