# MulVec3Mat33DivZ_F16

Computes the product of a 3x3 matrix and a vector, then multiplies the x, y elements of the result by the ratio n/z.

### Synopsis

`void MulVec3Mat33DivZ_F16( vec3f16 dest, vec3f16 vec,mat33f16 mat, frac16 n )`

### Description

This function multiplies a 3x3 matrix of 16.16 fractions by a 3-coordinate vector of 16.16 values, then multiplies the x and y elements of the result vector {x, y, z} by the ratio n/z, and deposits the result vector {x*n/z, y*n/z, z} in the product vector dest. This function can be used to perform the final projection transformation on points just before rendering.

### Arguments

dest
  The destination vector to store the results.

vec
  The vector to multiply.

mat
  The matrix to multiply.

n
  The scale factor to be multiplied by x and y projected results.

### Implementation

SWI implemented in operamath V20.

### Associated Files

operamath.h

### See Also

``MulVec3Mat33_F16`(), MulManyVec3Mat33DivZ_F16()`