I’m trying to work out the distance between two touch points on the iPhone but so far I’m having little success.

I’ve got two ofPoint variables that store point data when two fingers are down. These then get updated on move. Then what I did was use ofDistSquared which I thought would give me the distance between the two points but the numbers I get back are either 0 or really huge. Also the x always comes back as zero, yet the placement of the objects of the screen is always correct!

Anybody any ideas or can show me the way?

Aside from that, I’m totally loving the iPhone dev stuff. Thank you.