MultiplyVectorByMa trixNode

Introduced

7.0

UI Location

• Math > Matrix

• Math > Vector

Description

Outputs the product (multiplication) of the input vector by the specified matrix.

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.

Port Description

Inputs

Group ID | Instance s | Port Name | Connection Info | Description
0 | 1 | vector | • Type: siICENodeDataVector3 or siICENodeDataVector4 • Structure: siICENodeStructureAny • Context: siICENodeContextAny | The vector to multiply.
matrix | • Type: siICENodeDataMatrix33 or siICENodeDataMatrix44 • Structure: siICENodeStructureAny • Context: siICENodeContextAny | The matrix to multiply.

Outputs

Port Name | Connection Info | Description
result | • Type: siICENodeDataVector3 or siICENodeDataVector4 • Structure: siICENodeStructureAny • Context: E3DContext_Unknown | The resulting product (multiplication).

Restrictions

• These types must match: vector, result

• These structures must match: vector, matrix, result

• These contexts must match: vector, matrix, result

See Also

MultiplyNode | MultiplyByScalarNode | 3DVectorNode | 3x3MatrixNode
4DVectorNode | 4x4MatrixNode |  |

Autodesk Softimage v7.5