Transforms

Transforms #

Transform methods enable the alteration of a quadrille’s geometry through operations such as rotation, reflection, and transposition, altering the spatial arrangement of cells.

Note:
Transformation methods support method chaining, allowing for a streamlined sequence of modifications. For example, chaining quadrille.rotate().reflect().transpose() applies a series of transformations succinctly, which is functionally equivalent to:

quadrille.rotate();
quadrille.reflect();
quadrille.transpose();

This approach enhances readability and efficiency in code.