Volume of cones and spheres