added assertion that sphere-radius is always positive