Hello, I am trying to scale my X,Y values so that they are always between -1 to 1, and adjusting Z will only influence their size but not their position (the same behavior Z has when X,Y both are 0, but instead it can be anywhere on the screen). I don't know how to achieve this scaling though. I can't figure out the ratio of Z to X,Y. Here is a test patch:
Thanks for any help!