More geometry functions.