Lines Matching refs:s2

1207 	def concat(s1,s2) :
1208 if s1 == [] : return s2
1209 if s2 == [] : return s1
1210 if (s1[-1][1][0]-s2[0][1][0])**2 + (s1[-1][1][1]-s2[0][1][1])**2 > 0.00001 :
1211 return s1[:-1]+[ [s1[-1][0],s1[-1][1],s1[-1][1]], [s2[0][1],s2[0][1],s2[0][2]] ] + s2[1:]
1213 return s1[:-1]+[ [s1[-1][0],s2[0][1],s2[0][2]] ] + s2[1:]
1222 def csp_subpaths_end_to_start_distance2(s1,s2):
1223 return (s1[-1][1][0]-s2[0][1][0])**2 + (s1[-1][1][1]-s2[0][1][1])**2
1962 def csp_get_subapths_last_first_intersection(s1,s2):
1966 for j in range(1,len(s2)) :
1967 sp21,sp22 = s2[j-1], s2[j]
2215 s2 = splitted_offset[subpath_j]
2216 if (P(s1[0][1])-P(s2[-1][1])).l2()<0.0001 and ( (subpath_i+1) % len(splitted_offset) != subpath_j ):
2217 if dot(csp_normalized_normal(s2[-2],s2[-1],1.),csp_normalized_slope(s1[0],s1[1],0.))*r<-0.0001 :
2220 if (P(s2[0][1])-P(s1[-1][1])).l2()<0.0001 and ( (subpath_j+1) % len(splitted_offset) != subpath_i ):
2221 if dot(csp_normalized_normal(s2[0],s2[1],0.),csp_normalized_slope(s1[-2],s1[-1],1.))*r>0.0001 :
2229 draw_pointer( csp_at_t(s2[-2],s2[-1],1.)+
2230 (P(csp_at_t(s2[-2],s2[-1],1.))+ P(csp_normalized_normal(s2[-2],s2[-1],1.))*10).to_list(),"Green", "line" )
3363 s1,s2 = csp_normalized_slope(sp1,sp2,1.), csp_normalized_slope(sp2,sp3,0.)
3364 max_cross = max(max_cross,[cross(s1,s2),j-1])
3386 s1,s2 = csp_normalized_slope(sp1,sp2,1.), csp_normalized_slope(sp2,sp3,0.)
3387 if cross(s1,s2) > corner_tolerance :
3389 S1,S2 = P(s1),P(s2)
4975 s1,s2 = normalize( p1[0]-p2[0], p1[1]-p2[1]), normalize( p3[0]-p2[0], p3[1]-p2[1])
4976 if cross(s1,s2) > corner_tolerance :
5491 s2="#{0:x}0000".format(int(101*(1.5-math.sin(s+0.5))))
5494 'style': "stroke:" + s2 + "; stroke-opacity:1; stroke-width:" + str(t/2) +" ; fill:none",
5499 'style': "stroke:" + s2 + "; stroke-opacity:1; stroke-width:" + str(t/2) +" ; fill:none",