from macslib import * from math import * # The coordinates for the first point x1 = 2 y1 = 3 z1 = 4 # The coordinates for the second point: fill these in x2 = y2 = z2 = # The distance equation: change this 2D equation to a 3D equation distance = sqrt( (x1-x2)**2 + (y1-y2)**2 ) drawPoints([x1,x2], [y1,y2], [z1,z2], title="Distance: " + str(distance), xaxis=["X",-10,10], yaxis=["Y",-10,10], zaxis=["Z",-10,10])