The coordinates of a point are the distances from the origin of the feet of the perpendiculars from the point on the respective coordinate axis.
The distance between the points P(x1, y1, z1) and Q(x2, y2, z2) is given by
PQ =