Site Tools


documentation:development:opera:pf25:ppgfldr:pgsfldr:spr:03spr068

MulVec3Mat33DivZ_F16

Computes the product of a 3×3 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 3×3 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()

documentation/development/opera/pf25/ppgfldr/pgsfldr/spr/03spr068.txt · Last modified: 2022/10/10 16:53 by 127.0.0.1