Tools for working with points and intervals