Utility functions

These are some basic support functions.

This module mostly contains functions for rotations.