Add spherical geometry functions