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 fromvpCreateContext. 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_MATRIXVP_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
- debian bookworm: libvolpack1-dev 1.0b3-9 Β· BSD-3-Clause
- debian trixie: libvolpack1-dev 1.0b3-10 Β· BSD-3-Clause
- ubuntu jammy: libvolpack1-dev 1.0b3-9 Β· BSD-3-Clause
- ubuntu noble: libvolpack1-dev 1.0b3-9.1 Β· BSD-3-Clause
- ubuntu questing: libvolpack1-dev 1.0b3-11
- ubuntu resolute: libvolpack1-dev 1.0b3-11build1 Β· BSD-3-Clause
- ubuntu stonking: libvolpack1-dev 1.0b3-11build1 Β· BSD-3-Clause
- Copyright (c) 1994 The Board of Trustees of The Leland Stanford
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms