Added arc interpolation and midpoint functions.