Given that GEOM works extensively with coordinates in three dimensional space, it is convenient to prepare subroutines which can perform operations on three-dimensional matrices and vectors; this includes the calculation of the distance between points and relative orientations. In addition, certain specific matrices will be required, such as those representing rotations which have been specified by their Euler angles.