Equation of an Sphere

(x - h)2 + (y - j)2 + (z - k)2 = r2

(h,j,k) - the coordinates of the base of the Sphere
r - the radius of the Sphere