From two points (x1,y1) and (x2,y2) to jit.gl.graph "rotatexyz" and "position"

lorenz's icon

Hi, i'm new in this forum,
For a my project i want to positioning a jit.gl.graph from a couple of (x1,y1) (x2,y2) coordinates from cv.jit.touches.
Have you some ideas?? Thanks

Max Patch
Copy patch and select New From Clipboard in Max.

awdriggs's icon

I'm having trouble understanding exactly what you want.

Do you want graph to draw a line between x1 y1 and y2 y2?

maybe send a pick of what you are wanting?

awdriggs's icon

i mean pic as in picture, not pick.

its late.

bferns's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi Lorenz,
I think this should lay out what you're looking for. The key part is the cartopol object (the help patch will give more information). The patching here is sloppy so I wouldn't recommend copy/pasting this in, but it should illustrate how to get all the information you might need: