AnimatGuiCtrls.MatrixLibrary.Matrix.operator C# (CSharp) Method

operator() public static method

Returns the multiplication of two matrices with compatible dimensions OR the cross-product of two vectors. In case of an error the error is raised as an exception.
public static operator ( ) : Matrix
return Matrix
        public static Matrix operator *(Matrix Mat1, Matrix Mat2)
        {
            if ((Mat1.NoRows==3) && (Mat2.NoRows==3) &&
                (Mat1.NoCols==1) && (Mat1.NoCols==1))
            {
                return new Matrix(CrossProduct(Mat1.in_Mat,Mat2.in_Mat));
            }
            else
            {
                return new Matrix(Multiply(Mat1.in_Mat,Mat2.in_Mat));
            }
        }

Same methods

Matrix::operator ( ) : bool