R1: (5, 6)
R2: (3, 1)
T2: (0, 4)
T1: (-5, 2)
points: {R1, R2, T1, T2, (0, 0)}
triangle, f, g, t_1 = Polygon(T1, (x(T1), y(T2)), (x(T2), y(T1)))
rectangle, r1, h, r2, i = Polygon(R1, (x(R1), y(R2)), R2, (x(R2), y(R1)))
TC = Centroid(triangle)
RC = Centroid(rectangle)
x': y = y(RC)
y': x = x(RC)