Complex JavaScript function as a block in Node Geometry Editor?

I have a complex function that I would like to use in the Node Geometry Editor that takes three numbers and returns a matrix. How can I do this?

Michael

Have a look at MatrixComposeBlock source code.