Convenient geometric functions.