The formula:
distance=sqrt(((x1-x2)*(x1-x2))+((y1-y2)*(y1-y2))+((z1-z2)*(z1-z2)))
In DarkBASIC it's:
function distance3D(x1,y1,z1,x2,y2,z2)
x=x1-x2
y=y1-y2
z=z1-z2 result=sqrt((x*x)+(y*y)+(z*z)) endfunction result
In classic BASIC I think it's:
FUNCTION distance3D(x1,y1,z1,x2,y2,z2)
x=x1-x2
y=y1-y2
z=z1-z2 result=SQRT((x*x)+(y*y)+(z*z))
RETURN result
END FUNCTION
Chat with our AI personalities
It is the same as the distance formula. DISTANCE FORMULA: d=square root of (x2-x1)^2+(y2-y1)^2
distance= speed x time
the ancient Egyptians
No.
Distance = speed x time