Forums > Jitter

wrap float matrix

February 4, 2008 | 12:54 pm

Hiya!

I’m looking for a way to wrap the data in a float matrix. The matrix
contains values which define particles. I would like to define a
"cube" where if a particle exits its bounds, it comes in on the other
side.

grtz.

Brecht.


February 6, 2008 | 12:19 pm

Howdy Brecht,

my email is fuck*ng fuck*d up, totally screw*d, so sorry for the lack of example patch.

You can use wrap&fold op’s for jit.op or jit.expr:

jit.expr @expr wrap(in[0] , someValue)

or

jit.op @expr wrap @val someValue

best,
nesa


February 6, 2008 | 12:47 pm

Cheers Nesa,

I’ll give that a go!


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