mat44Vec3

Multiply a 4x4 matrix with a 3 vector.

Signatures

  •   Paramate.Math3D.mat44Vec3( a, b )

Details

The function multiplies a 4x4 matrix with a 3-dimensional vector. The vector is complemented to a 4-vector in order to perform the operation: a (b,1).

Parameters

a

A 4x4 matrix of type

 [ [<number>, <number>, <number>,<number>],
   [<number>, <number>, <number>,<number>],
   [<number>, <number>, <number>,<number>],
   [<number>, <number>, <number>,<number>] ]

b

A vector of type [<number>, <number>, <number>]. In order to perform the operation, the vector gets logically complemented by a fourth component with a value of 1.

Return value

A 3-dimensional vector that is the result of the matrix-vector multiplication.