atan2 in jit.expr

Brecht's icon

Hi,

Could someone point out how to use atan2 within an expression for jit.expr?
atan2(in[0].p[0] in[0].p[1]) doesn't seem to be the way to do it...

Thx!
Brecht

nesa's icon

it probably needs comma, in max5 you can type it in quotes:

jit.expr @expr "atan2(in[0].p[0], in[0].p[1])"

hth,<