Warcraft III resources & community, 2003–2006 · archived

DistanceBetweenPointsXYZ

not rated
Submitted by KaTTaNaCalculations0 downloads
Returns the distance between two 3-dimensional points.

Source

function DistanceBetweenPointsXYZ takes real x1, real y1, real z1, real x2, real y2, real z2 returns real
    return SquareRoot((x1 - x2)*(x1 - x2)+(y1 - y2)*(y1 - y2)+(z1 - z2)*(z1 - z2))
endfunction

Comments

0

No comments.