def make_wedged_bezier2(bezier2, length, shrink_factor=<NUM_LIT:0.5>):
xx1, yy1 = bezier2[<NUM_LIT:2>]<EOL>xx2, yy2 = bezier2[<NUM_LIT:1>]<EOL>xx3, yy3 = bezier2[<NUM_LIT:0>]<EOL>cx, cy = xx3, yy3<EOL>x0, y0 = xx2, yy2<EOL>dist = sqrt((x0-cx)**<NUM_LIT:2> + (y0-cy)**<NUM_LIT:2>)<EOL>cos_t, sin_t = (x0-cx)/dist, (y0-cy)/dist,<EOL>x1, y1, x2, y2 = get_normal_points(cx, cy, cos_t, sin_t, length)<EOL>xx12, yy12 = (xx1+xx2)/<NUM_LIT>, (yy1+yy2)/<NUM_LIT>, <EOL>xx23, yy23 = (xx2+xx3)/<NUM_LIT>, (yy2+yy3)/<NUM_LIT>, <EOL>dist = sqrt((xx12-xx23)**<NUM_LIT:2> + (yy12-yy23)**<NUM_LIT:2>)<EOL>cos_t, sin_t = (xx12-xx23)/dist, (yy12-yy23)/dist,<EOL>xm1, ym1, xm2, ym2 = get_normal_points(xx2, yy2, cos_t, sin_t, length*shrink_factor)<EOL>l_plus = [(x1, y1), (xm1, ym1), (xx1, yy1)]<EOL>l_minus = [(x2, y2), (xm2, ym2), (xx1, yy1)]<EOL>return l_plus, l_minus<EOL>
Being similar to get_parallels, returns
control points of two quadrativ bezier lines having a width roughly parralel to given
one separated by *width*.