We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi!
I am developing a library for Processing and I need to do some 3D matrix-vector multiplication. I don't seem to be able to multiply a PMatrix3D with a vector
I see in the source that the w coordinate is commented out so it may have worked in the past.
Why is it commented out? Is there any other way to multiply a 4x4 matrix with a 1x4 vector?
Can I check and possibly readd this functionality?
Answers
First I would read this (skip the opening post).
https://forum.processing.org/two/discussion/8832/does-pvector-array-make-a-shallow-or-a-deep-copy
I would just make your own vector.
What you also could do is something like: