matrix calculation of all possible pairs from cells

May 10, 2007 at 11:59am

matrix calculation of all possible pairs from cells

howdy,

i would really appreciate some help / hints on a matrix calcultation i’m trying to figure out, but i don’t have any idea where to start.

i’m using 3 plane float32 matrices, variable between 1 and 50 in dimension, the first and second plane contain coordinate data. what i’d like to do is draw all possible lines between these coordinates in jit.lcd.

what i’m looking for is a way to calculate all possible combinations of pairs.

so:

(x1,y1) (x2,y2) (x3,y3)

becomes

(x1,y1,x2,y2) (x1,y1,x3,y3) (x2,y2,x3,y3)

i’d really like to keep this calculation inside jitter because of cpu.

thanks a lot in advance,

daan

#31843
May 10, 2007 at 6:47pm

#103947
May 10, 2007 at 7:14pm

#103948

You must be logged in to reply to this topic.