From e29f86312b9d61b3f206e22d4207a0fad641ad4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 26 Nov 2019 12:45:02 +0200 Subject: [PATCH] formatting --- Karto/assignment4/KTZ004_2019_04_brez.dwg | Bin 46533 -> 46533 bytes Karto/assignment4/measure.py | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Karto/assignment4/KTZ004_2019_04_brez.dwg b/Karto/assignment4/KTZ004_2019_04_brez.dwg index fbe6e4e0f555d28200c750495447fdc2d8fb71fe..508ff4dab9560968474b84553f7bdbf2e975a836 100644 GIT binary patch delta 2963 zcmdT`d010d7Qgppg#-wKfCv&^!d7HW42yvzECB>HMO2o60wHAyOVMFeC`ln9jtfqS3REd|Mbs*vw6-eR7BzFDU;mkJ{+Ri5Zt{EgtoPja&N=Vh z3s0~MPq6Jxl-byB*ZKAP{G5JXZu?9jQ4SZJ_di{-cpu({*Ee@>b-9sYUbv)wdLjKv zMvP}o+EppRhJ0J`qXSrPwHwH_j3W1=S*%@x5t0Ml1RJBP2LS*W!ZA*V9MB-5*ys{z znrQ$WHX4lp@w4d=bO20FgCqb*atNsakmb+}ac_~y1e#yhG2UpQB?Wm7ARq&vkpe(l z!$AIpH1i6JPJ224=np0k%(NC6HhVE)ud94sI>S8OhN`8={K!ai1T83M$bG2{#Oy^Y zGi3}jGXN|QE4Bt8A{}Ct=4*l0ig<_x>gSTO&FRl%>z2kRHoEFH7TYl!0Z0M?z#oJH z{-0MO$J&EvXW8l3vOGzFScF0{6seFr5x>W_S1(c?zHoCv5#r%}*wl!@ojW3+J+^ZP z1~1vcy+;VgY)9&a5eTQ+s}*P=rN4ae0zs2pZaJ3V$DAgp|;J0 zNRdiydJHL=GenER#oI6i;ZSP?6u`+=%&fgN0=sw?IGr67I|s7(&~NTkJ4XM!J;KsY ze1dqW_>jeTNom$&Bq!*kssk7tu9wUu5^_q(4`P8O@#`*I;^RsieUqIq-u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?dNgt5dP=sNPx3=i(EIfV$-;STV`^FwP9IV}Kg~PR4cICG8o){x z#*=4b@uR0wfrkDtnGlCxE2|2~E0LW8uRWy)EalMkC;y|_9pH?mN?3K)m2bB>Jt-_Jr)HoXtr%|bBT7@GoQj>e* z!N?;YXsjx-QsYpOT#ZUa)~c=K8Feofn-j1Yl7Or#N3Udc0?-)>n!KV-mpWD{aFld^ zD_No;2NNK3I!#xRD|K|Q#9a+05&53ZN|U6{L6aY9RXD|cO|RrFHP9qmL(sGX8<(pc z*32a;>xzX|vQ;`+34A@$HVrFh{B zvrns2c86Yz-m|zGCD-OD=&$q zXY@unK}_mOiEtDA-~m~q@7S9UkN;A4s&D_&OE)S)zWH`!Kj%^GSk~5Gc>V59-H0uF^DR%dMC|2sUrwy>Vmb=~ZR!A5qH4P_4v#aKP2qUh zY6N0|5RAGEKXk&su~aPZLSk&hOR)!}l$LCqAv>flLNaj>!gFFK2c+b=>11D^_i}ut zGx)s``0esMA)0sMUvn>^^rk>daI{^kJZYFgxm%*}T#^*YwcxPZ40x*}$3zx|Ngxh# zgL!sB9Fzd0Js9P@l2=F;B~daeokG!eR?R}mSs5j0gex3bk)e^@$X6aB8YerF%iP+v zRDQ5p&d9b+d>$lyiT8DMSXk4l9&J;i*Bp2Jd=Y4^6~KtIagSl<0MFS7=9qPwC(#Xn zI{EnH05*IX6>Ga}^4bENUw}=2g7g*zl_V znZ6fyy}zyPyO-q?%!TfWwynQ^zOsAqzV_?mJNBklb|+hR)YU3Qq8SB?<5prCpE)pi zblJW=dF`nSCyfo5)&-Q56z!aK>vGsvQ${JK*Eyo9Nw?^pDXZyxNy%8Le#-6tj`@#D zHD|r&HHKnhHb;mJU9OHJ*DcZ%-wn4E5C_YA$khdQOmKi;f@>i z)_Z?Btd}> B`s@Gz diff --git a/Karto/assignment4/measure.py b/Karto/assignment4/measure.py index 7c887e6..d540fc4 100755 --- a/Karto/assignment4/measure.py +++ b/Karto/assignment4/measure.py @@ -26,15 +26,11 @@ class Vertex: self.ang = angle self.dirang = dirang self.coords = coords - def __str__(self): - return "%2d: len:%7.3f acadang:%9.4f acadcoords:(%.3f,%.3f)" % \ - (self.point, self.len, - (90 - self.dirang), self.coords.acadx, self.coords.acady) -A= Dec('6.094') -B= Dec('-2.923') -C= Dec('-13.462') -N= Dec('9.512') +A = Dec('6.094') +B = Dec('-2.923') +C = Dec('-13.462') +N = Dec('9.512') # Directional coords + angle X11 = Dec('6091968.055') @@ -105,8 +101,13 @@ if __name__ == '__main__': print("angle sum %.4f, theoretical angle sum %d" % \ (angle_sum, theoretical_angle_sum)) - for v in vertices: - print(v) + for i, v in enumerate(vertices): + nxt = vertices[0 if i == len(vertices) - 1 else i+1] + + pts = "%d-%d" % (v.point, nxt.point) + draw = "@%.3f<%.4f" % (v.len, 90 - v.dirang) + print("%5s: %19s acadcoords:(%.3f,%.3f)" % \ + (pts, draw, v.coords.acadx, v.coords.acady)) print(""" Kelio A-03 plotis = 17.401 + A = %.3f""" % KA03_plotis + """