예제 #1
0
    /// <summary>
    /// Multiply a matrix by a scalefactor.
    /// </summary>
    /// <param name="matrix1">The matrix.</param>
    /// <param name="scaleFactor">The scale factor.</param>
    /// <returns>A JMatrix multiplied by the scale factor.</returns>
    public static VMatrix4x4 Multiply(VMatrix4x4 matrix1, long scaleFactor)
    {
        VMatrix4x4 result;

        VMatrix4x4.Multiply(ref matrix1, scaleFactor, out result);
        return(result);
    }
예제 #2
0
    /// <summary>
    /// Multiplies two matrices.
    /// </summary>
    /// <param name="value1">The first matrix.</param>
    /// <param name="value2">The second matrix.</param>
    /// <returns>The product of both values.</returns>
    public static VMatrix4x4 operator *(VMatrix4x4 value1, VMatrix4x4 value2)
    {
        VMatrix4x4 result;

        VMatrix4x4.Multiply(ref value1, ref value2, out result);
        return(result);
    }
예제 #3
0
    /// <summary>
    /// Multiply two matrices. Notice: matrix multiplication is not commutative.
    /// </summary>
    /// <param name="matrix1">The first matrix.</param>
    /// <param name="matrix2">The second matrix.</param>
    /// <returns>The product of both matrices.</returns>
    public static VMatrix4x4 Multiply(VMatrix4x4 matrix1, VMatrix4x4 matrix2)
    {
        VMatrix4x4 result;

        VMatrix4x4.Multiply(ref matrix1, ref matrix2, out result);
        return(result);
    }