Multiply Vector by Matrix
 
 
 

Categories

  • Math > Matrix

  • Math > Vector

Description

Outputs the product (multiplication) of the input vector by the specified matrix. The multiplication is performed as if the vector is a row-vector on the left and the matrix is on the right.

Multiplying a 3D vector with a 4x4 matrix outputs a 3D vector. To accomplish this, the value 1 is added as the fourth component of a new 4D vector, then the multiplication is performed. Finally, the components of the resulting 4D vector are divided by its fourth component to produce the resulting 3D vector.

Multiplying a 4D vector with an 3x3 matrix outputs an 4D vector. To accomplish this, a new row/column is added as the fourth row/column of a new 4x4 matrix, each new component being set to 0 except the last one (the component of the fourth row/column) being set to 1. The multiplication is then performed to produce the resulting 4D vector.

Ports

Inputs

Vector

The vector to multiply.

Matrix

The matrix to multiply.

outputs

Result

The resulting product (multiplication).