+ def get_triangle_backfaces_transform(self, triangle):
+ """Calculate the transformation matrix from a triangle in an hexagon to
+ the correspondent triangle in a backface.
+
+ Return the matrix as a list of values sorted in row-major order."""
+ src_x, src_y = self.get_triangle_center(triangle)
+ dest_x, dest_y = self.get_triangle_center_in_backfaces(triangle)
+ theta = triangle.get_angle_in_backface_relative_to_hexagon()
+
+ return self.backend.calc_rotate_translate_transform(src_x, src_y,
+ dest_x, dest_y, theta)
+