Rez na kocke Metóda AB

\text{Metóda spájania}

1. \text{ Sú dané body rezu }K, L, M

A = (-3, -3, 0)
B = (2, -3, 0)
C = Point(Circle[B, Distance[A, B], Segment[A, B]])
a, D, E, F, G, H, stenaABCD, stenaADHE, stenaABFE, stenaBCGF, stenaCDHG, stenaEFGH, hranaAD, hranaAB, hranaBC, hranaCD, hranaAE, hranaDH, hranaEH, hranaEF, hranaBF, hranaFG, hranaCG, hranaGH = Cube(A, B, C)
M = Point(hranaEH)
f = Ray(D, C)
g = Ray(C, B)
L = Point(f)
K = Point(g)