Ül. 1

Antud \; joonisel \; on  \; lühem \; lõik \; A_2B_1,\ seega \; lühima \; pikkusega \; teekond \; on \; AEDB.

M = (2.7, 6.52)
N = (12.14, 7.38)
f = Line(M, N)
O = (2.78, 2.64)
P = (10.28, 2.5)
g = Line(O, P)
A = (2.76, 3.96)
B = (11.46, 6.14)
A_2 = Mirror(A, g)
A_1 = Mirror(A, f)
B_1 = Mirror(B, f)
B_2 = Mirror(B, g)
h = Segment(A_2, B_1)
i = Segment(A_1, B_2)
C = Intersect(f, i)
D = Intersect(f, h)
E = Intersect(g, h)
F = Intersect(i, g)
j = PolyLine(A, C, F, B)
k = PolyLine(A, E, D, B)
l = Segment(A, C)
m = Segment(C, F)
n = Segment(F, B)
p = Segment(A, E)
q = Segment(E, D)
r = Segment(D, B)
s = Segment(A_2, E)
t = Segment(A_1, C)
a = Segment(B_1, D)
b = Segment(F, B_2)