M: {{1, -2}, {0, 1}}
v = Vector((1, -4))
A = (2, 1)
A' = ApplyMatrix(M, A)
B = (5, 1)
C = (5, 3)
D = (2, 3)
a = Segment(A, B)
b = Segment(B, C)
c = Segment(C, D)
d = Segment(D, A)
B' = ApplyMatrix(M, B)
C' = ApplyMatrix(M, C)
D' = ApplyMatrix(M, D)
e = Segment(D', C')
f = Segment(D', A')
g = Segment(C', B')
h = Segment(B', A')
B'' = Translate(B', v)
C'' = Translate(C', v)
D'' = Translate(D', v)
A'' = Translate(A', v)
i = Segment(A'', B'')
j = Segment(B'', C'')
k = Segment(C'', D'')
l = Segment(D'', A'')