Lines Matching defs:mag

977 	r = (P0-c).mag()
985 return (p-i).mag(), [i.x, i.y]
987 d1, d2 = (p-P0).mag(), (p-P2).mag()
1655 def mag(self): return math.hypot(self.x, self.y)
1657 h = self.mag()
1678 self.r = (P(st)-P(c)).mag()
1703 r = r.mag()
1751 def length(self): return (self.st-self.end).mag()
2063 if (P(sp[1])-P(sp[0])).mag() < 0.001 :
2065 if (P(sp[2])-P(sp[0])).mag() < 0.001 :
2300 if TE.mag()<straight_distance_tolerance and TS.mag()<straight_distance_tolerance:
2303 if TE.mag() < straight_distance_tolerance:
2305 r = TS.mag()/v.mag()*2
2306 elif TS.mag() < straight_distance_tolerance:
2308 r = 1/( TE.mag()/v.mag()*2 )
2310 r=TS.mag()/TE.mag()
2314 ((v.mag()<straight_distance_tolerance or TE.mag()<straight_distance_tolerance or TS.mag()<straight_distance_tolerance) or
2315 1-abs(TS*v/(TS.mag()*v.mag()))<straight_tolerance) ):
2323 if v.mag()==0:
2347 if (D-P1).mag()==0: return None, None
2348 R = D - ( (D-P0).mag()**2/(D-P1).mag() )*(P1-D).unit()
2353 if abs(R.x)>1000000 or abs(R.y)>1000000 or (R-P0).mag<options.min_arc_radius**2 :
2359 if R1==None or R2==None or (R1-P0).mag()<straight_tolerance or (R2-P2).mag()<straight_tolerance : return [ [sp1[1],'line', 0, 0, sp2[1], [z1,z2]] ]
2364 if R2.mag()*a2 == 0 : zm = z2
2365 else : zm = z1 + (z2-z1)*(abs(R1.mag()*a1))/(abs(R2.mag()*a2)+abs(R1.mag()*a1))
3980 if abs(r1.mag()-r2.mag()) < 0.001 :
3983 r = (r1.mag()+r2.mag())/2
4812 scale = (P(p0)-P(p1)).mag()
4863 if TE.mag()<straight_distance_tolerance and TS.mag()<straight_distance_tolerance:
4866 if TE.mag() < straight_distance_tolerance:
4868 r = TS.mag()/v.mag()*2
4869 elif TS.mag() < straight_distance_tolerance:
4871 r = 1/( TE.mag()/v.mag()*2 )
4873 r=TS.mag()/TE.mag()
4877 ((v.mag()<straight_distance_tolerance or TE.mag()<straight_distance_tolerance or TS.mag()<straight_distance_tolerance) or
4878 1-abs(TS*v/(TS.mag()*v.mag()))<straight_tolerance) ):
4886 if v.mag()==0:
4910 if (D-P1).mag()==0: return None, None
4911 R = D - ( (D-P0).mag()**2/(D-P1).mag() )*(P1-D).unit()
4916 if abs(R.x)>1000000 or abs(R.y)>1000000 or (R-P0).mag<options.min_arc_radius**2 :
4922 if R1==None or R2==None or (R1-P0).mag()<straight_tolerance or (R2-P2).mag()<straight_tolerance : return [ [sp1[1],'line', 0, 0, sp2[1], [z1,z2]] ]
4927 if R2.mag()*a2 == 0 : zm = z2
4928 else : zm = z1 + (z2-z1)*(abs(R1.mag()*a1))/(abs(R2.mag()*a2)+abs(R1.mag()*a1))
6093 if abs(r1.mag()-r2.mag()) < 0.001 :
6096 r = (r1.mag()+r2.mag())/2