Forums > Jitter

atan2 in jit.expr

April 28, 2010 | 10:21 am

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


April 28, 2010 | 1:46 pm

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,
<


Viewing 2 posts - 1 through 2 (of 2 total)