15.10.2012, 12:51
Hey, dudes, multiplying two negatives results in a positive value. The simplest way would be:
Code:
floatsqroot((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) + (z1 - z2) * (z1 - z2));