Volume of pyramids, cones and spheres