polar to cartesian transform using jit.repos?

Feb 19, 2007 at 8:48pm

polar to cartesian transform using jit.repos?

hi all. checked the forums, doesn’t seem to be anything there. but i’ve been wrong many times before.

i’m looking for a jit.repos map that does polar to cartesian transforms, as opposed to the other way around. anyone got one handy?

#30353
Feb 20, 2007 at 4:28am

no dice, huh? anyonebuelleranyone?

like, uh, 242.polar2?

On Feb 19, 2007, at 3:48 PM, joshua goldberg wrote:

>
> hi all. checked the forums, doesn’t seem to be anything there.
> but i’ve been wrong many times before.
>
> i’m looking for a jit.repos map that does polar to cartesian
> transforms, as opposed to the other way around. anyone got one handy?
>

#96891
May 17, 2012 at 4:37pm

I know that it is 5 years later, and you have hopefully moved on to other things, but I solved this issue. I thought it would be good to post the solution in case someone needs it.

jit.expr @expr (sin(norm[0]*PI*2.)*norm[1]*128.)+64. (cos(norm[0]*PI*2.)*norm[1]*128.)+64.

This is for a 128 x 128 pixel matrix.

Matt

#96892

You must be logged in to reply to this topic.