Home  |  Programs  |  Tips & Tricks  |  Subs & Functions  |  Links  |  Laz's Liberty Basic Site


GetDistance Function

Call the function like this:
Distance = GetDistance(x1,y1,x2,y2)

x1 and y1 are the x and y for the first point
x2 and y2 are the x and y for the second point



function GetDistance(Ax,Ay,Bx,By)
Distance = sqr(((Ax-Bx)^2)+((Ay-By)^2))
end function

Hosted by www.Geocities.ws

1