vpMultMatrix(3)

πŸ’– vpMultMatrix β€” ok bestie, we're multiplying matrices πŸ’–

it's giving vpMultMatrix(3), from the Library Functions Manual, and honestly? it's a whole mood. let's go 🫢


✨ NAME ✨

vpMultMatrix β€” multiply the current transformation matrix by another matrix. that's it. that's the girl. πŸ”₯


🌸 SYNOPSIS 🌸

#include <volpack.h>

vpResult
vpMultMatrix(vpc, m)
    vpContext *vpc;
    vpMatrix4 m;

πŸŽ€ ARGUMENTS πŸŽ€

  • vpc β€” the VolPack context you got from vpCreateContext. your main character. πŸ‘‘
  • m β€” the input matrix. the new bestie you're introducing to the group chat. πŸ¦‹

πŸ’… DESCRIPTION πŸ’…

so vpMultMatrix multiplies the current transformation matrix by an arbitrary 4-by-4 transformation matrix. lowkey powerful, highkey essential.

wanna set the current transformation matrix instead of multiplying it? that's vpCurrentMatrix's job, not hers. don't mix them up bestie 😭

by default, the matrix gets post-multiplied, which looks like:

N = N*m

where N is the current matrix and m is the argument to vpMultMatrix. yes, the math is real, no cap.

and if post-multiplication isn't your vibe? the VP_CONCAT_MODE option to vpSeti lets you pick pre-multiplication instead. options, we love to see it ✨


🌈 STATE VARIABLES 🌈

you can pull the current matrix concatenation parameters with these state variable codes (peep vpGeti(3) for the deets):

  • VP_CURRENT_MATRIX
  • VP_CONCAT_MODE

πŸ’€ ERRORS πŸ’€

the return value is always VP_OK. always. every single time. she does not miss. periodt. πŸ’…


🧚 SEE ALSO 🧚


ok that's the whole page, go forth and concatenate responsibly 🌸

this has been your girl vpMultMatrix(3) from VolPack β€” stay iconic, bestie πŸ’œ
πŸ“¦ where this page comes from