DeCasteljau-pontok mutatása

p_0 = (-1.86, -1.5)
p_1 = (-1.6, 2.4)
p_2 = (2.2600000000000002, 1.52)
p_3 = (4.34, -1.28)
p_{01} = Segment(p_0, p_1)
p_{12} = Segment(p_1, p_2)
p_{23} = Segment(p_2, p_3)
O = (5.58, 3.96)
I = (7.52, 3.96)
d = Segment(O, I)
t = Point(d)
dEG = Distance(O, t)
SzövegEG: "\overline{" + (Name[O]) + (Name[t]) + "} \, = \, " + dEG
dEF = Distance(O, I)
SzövegEF: "\overline{" + (Name[O]) + (Name[I]) + "} \, = \, " + dEF
B' = Dilate(p_1, dEG / dEF, p_0)
C' = Dilate(p_2, dEG / dEF, p_1)
D' = Dilate(p_3, dEG / dEF, p_2)
C'' = Dilate(C', dEG / dEF, B')
D'' = Dilate(D', dEG / dEF, C')
D''' = Dilate(D'', dEG / dEF, C'')
e = Segment(B', C')
f = Segment(C', D')
g = Segment(C'', D'')
loc1 = Locus(D''', t)
h = false