2015-03-05 03:12 PM
2015-03-05 04:11 PM
philips wrote:Hello.
Hi,
Quick simple question.
Is there a command allowing to quickly measure distance between two points defined by X and Y?
.... something like this "DIST":
DIST 10, 20, 30, 50 , distance
PRINT distance != 36,1
philips wrote:You could only simplify with:
If there no such command than is there a simpler method than this? :
distance = sqr( (30-10)*(30-10) + (50-20)*(50-20) )
distance = sqr( (30-10)^2 + (50-20)^2 )or
distance = sqr( (30-10)**2 + (50-20)**2 )but that's about it.
2015-03-19 10:55 AM
2015-03-20 03:14 PM
2015-03-20 05:05 PM
distance = sqr ( (x2-x1)^2 + (y2-y1)^2 + (z2 - z1)^2 )
2015-03-20 05:25 PM