Symmetry operations can be written in many ways. A good way to write them is by using matrices. For any vector representing a point in Cartesian coordinates, left-multiplying it gives the new place of the point transformed by the symmetry operation. Composition of operations is done by matrix multiplication. In the C example this is: