SRL Archive - OSR Help

How to extract x and y from points?


ookamocka

2013-03-08 00:43:26

if i have an array z[] of points(x,y)

how do I get the x and y variables?

i.e.

z[0]'s x and y value

ookamocka

2013-03-08 00:45:37

or actually, is there a function for determining distances between two TPoint (obv i could just do this myself if i could get the x and y values)? (though i'd still like to know the answer to my original question)

x[Warrior]x3500

2013-03-08 01:13:15

z[0].x
z[0].y

distance(x1,y1,x2,y2);

ookamocka

2013-03-08 04:23:27

i kind of thought so but wasn't sure, thanks