Pythagorean Therom:
d#=sqr((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2))
Where x1,y1,z1 us the start point of the pick, and x2,y2,z2 is the end point. (you obtain endpoint by PickedX(),PickedY(),and PickedZ())
d#=sqr((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2))
Where x1,y1,z1 us the start point of the pick, and x2,y2,z2 is the end point. (you obtain endpoint by PickedX(),PickedY(),and PickedZ())