Add basic geomerty and matrix calculations.