Multiply Matrix and Point to apply transformation

openframeworks has makeRotationMatrix, makeTranslationMatrix, etc. and apply it to any stored coordinate.

p5js has applyMatirx() but it applies to the elements being drawn not to variables.
It seems might have those options.

I was not successful using these examples
and do var new_p = MDN.multiplyMatrixAndPoint(transformMatrix_0, old_p);

I ultimately want to loop through a bunch of coordinates and angles collect rotation and translation matrices and apply those later.

thanks for any advice.