diagram: share the rotate-translate calculation in the generic diagram class
authorAntonio Ospite <ao2@ao2.it>
Wed, 27 Jun 2018 18:00:05 +0000 (20:00 +0200)
committerAntonio Ospite <ao2@ao2.it>
Thu, 28 Jun 2018 14:45:09 +0000 (16:45 +0200)
commit23f35964b301e77eaa007aa75fe9f768f2761a5c
treeeef96a14e86a862995d448f2260e7228406a227a
parent3db2ec8778dd90fe914ab286d449caa243eca978
diagram: share the rotate-translate calculation in the generic diagram class

Move the calculation of the rotate-translate transformation matrix into
the generic diagram class, so that it can be shared.
src/diagram/diagram.py
src/flexagon/hexaflexagon_diagram.py
src/flexagon/tetraflexagon_diagram.py