a = 0 (slider from -5 to 10, step 0.1)
Dx: {{1, 0, 0}, {0, cos(a), (-sin(a))}, {0, sin(a), cos(a)}}
M: {{1, 2 / 3, 0}, {0, 1 / 3, 1}}
p1: (0, 0, 0)
p2: (1, 0, 0)
p3: (1, 1, 0)
p4: (0, 1, 0)
p5: (0, 0, 1)
p6: (1, 0, 1)
p7: (1, 1, 1)
p8: (0, 1, 1)
A: ((M * Dx) * p1)
B: ((M * Dx) * p2)
C: ((M * Dx) * p3)
D: ((M * Dx) * p4)
E: ((M * Dx) * p5)
F: ((M * Dx) * p6)
G: ((M * Dx) * p7)
H: ((M * Dx) * p8)
k1: B - A
k2: C - B
k3: D - A
k4: C - D
k5: E - A
k6: F - B
k7: G - C
k8: H - D
k9: F - E
k10: G - F
k11: H - E
k12: G - H