Skip to content

Instantly share code, notes, and snippets.

@fogleman
Last active January 3, 2017 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fogleman/62bcad0fca80badc93e8d6e6f461e3cf to your computer and use it in GitHub Desktop.
Save fogleman/62bcad0fca80badc93e8d6e6f461e3cf to your computer and use it in GitHub Desktop.
Constant Acceleration Motion Planning
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>body {padding: 0; margin: 0; overflow: hidden;}</style>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.5/p5.min.js"></script>
<script src="pieces.js"></script>
<script src="sketch.js"></script>
</body>
</html>
var PIECES = [
[90.0,0.0,89.7807645234,6.27808263697,100,0.354454775859],
[89.7807645234,6.27808263697,89.1241261867,12.5255790864,100,0.146819975409],
[89.1241261867,12.5255790864,88.033284066,18.7120521736,100,0.112658929505],
[88.033284066,18.7120521736,86.5135526344,24.8073620235,100,0.0949758709447],
[86.5135526344,24.8073620235,84.5723358707,30.7818128993,100,0.0836754220521],
[84.5723358707,30.7818128993,82.2190911878,36.6062978768,100,0.0756483639769],
[82.2190911878,36.6062978768,79.4652833573,42.2524406507,100,0.0695658501949],
[79.4652833573,42.2524406507,76.3243286541,47.692733781,100,0.0647503145933],
[76.3243286541,47.692733781,72.8115294937,52.9006727063,100,0.0608148250415],
[72.8115294937,52.9006727063,68.9439998807,57.8508848718,100,0.0575200916618],
[68.9439998807,57.8508848718,64.7405820305,62.5192533413,100,0.0547090774349],
[64.7405820305,62.5192533413,60.2217545723,66.883034293,100,0.0522738648726],
[60.2217545723,66.883034293,55.4095327793,70.9209678246,100,0.0501375076462],
[55.4095327793,70.9209678246,50.3273613124,74.61338153,100,0.0482434611774],
[50.3273613124,74.61338153,45.0,77.9422863406,100,0.0465491135154],
[45.0,77.9422863406,39.453403211,80.8914641669,100,0.0450216595504],
[39.453403211,80.8914641669,33.7145934074,83.446546911,100,0.0436353769352],
[33.7145934074,83.446546911,27.8115294937,85.5950864666,100,0.0423697734318],
[27.8115294937,85.5950864666,21.772970604,87.3266153648,100,0.0412082942216],
[21.772970604,87.3266153648,15.62833599,88.6326977711,100,0.0401373995156],
[15.62833599,88.6326977711,9.40756169409,89.5069705831,100,0.0391458932721],
[9.40756169409,89.5069705831,3.14095470323,89.9451744317,100,0.0382244260212],
[3.14095470323,89.9451744317,-3.14095470323,89.9451744317,100,0.0373651208196],
[-3.14095470323,89.9451744317,-9.40756169409,89.5069705831,100,0.0365612878409],
[-9.40756169409,89.5069705831,-15.62833599,88.6326977711,100,0.0358072038007],
[-15.62833599,88.6326977711,-21.772970604,87.3266153648,100,0.0350979394962],
[-21.772970604,87.3266153648,-27.8115294937,85.5950864666,100,0.0344292235284],
[-27.8115294937,85.5950864666,-33.7145934074,83.446546911,100,0.0337973335644],
[-33.7145934074,83.446546911,-39.453403211,80.8914641669,100,0.0331990087925],
[-39.453403211,80.8914641669,-45.0,77.9422863406,100,0.0326313788575],
[-45.0,77.9422863406,-50.3273613124,74.61338153,100,0.0320919057285],
[-50.3273613124,74.61338153,-55.4095327793,70.9209678246,100,0.0315783358082],
[-55.4095327793,70.9209678246,-60.2217545723,66.883034293,100,0.0310886602157],
[-60.2217545723,66.883034293,-64.7405820305,62.5192533413,100,0.0306210816454],
[-64.7405820305,62.5192533413,-68.9439998807,57.8508848718,100,0.0301739865505],
[-68.9439998807,57.8508848718,-72.8115294937,52.9006727063,100,0.0297459216714],
[-72.8115294937,52.9006727063,-76.3243286541,47.692733781,100,0.0293355741263],
[-76.3243286541,47.692733781,-79.4652833573,42.2524406507,100,0.028941754444],
[-79.4652833573,42.2524406507,-82.2190911878,36.6062978768,100,0.0285633820377],
[-82.2190911878,36.6062978768,-84.5723358707,30.7818128993,100,0.0281994727156],
[-84.5723358707,30.7818128993,-86.5135526344,24.8073620235,100,0.0278491278988],
[-86.5135526344,24.8073620235,-88.033284066,18.7120521736,100,0.0275115252778],
[-88.033284066,18.7120521736,-89.1241261867,12.5255790864,100,0.0271859106862],
[-89.1241261867,12.5255790864,-89.7807645234,6.27808263697,100,0.026871591007],
[-89.7807645234,6.27808263697,-90.0,1.10218211923e-14,100,0.0265679279628],
[-90.0,1.10218211923e-14,-89.9900753676,-0.284204287994,100,0.00119569109789],
[-89.9900753676,-0.284204287994,-89.7807645234,-6.27808263697,-100,0.0253458497919],
[-89.7807645234,-6.27808263697,-89.1241261867,-12.5255790864,-100,0.0268436682018],
[-89.1241261867,-12.5255790864,-88.033284066,-18.7120521736,-100,0.0271569975422],
[-88.033284066,-18.7120521736,-86.5135526344,-24.8073620235,-100,0.0274815618353],
[-86.5135526344,-24.8073620235,-84.5723358707,-30.7818128993,-100,0.0278180489893],
[-84.5723358707,-30.7818128993,-82.2190911878,-36.6062978768,-100,0.0281672073656],
[-82.2190911878,-36.6062978768,-79.4652833573,-42.2524406507,-100,0.0285298527861],
[-79.4652833573,-42.2524406507,-76.3243286541,-47.692733781,-100,0.0289068765594],
[-76.3243286541,-47.692733781,-72.8115294937,-52.9006727063,-100,0.0292992547054],
[-72.8115294937,-52.9006727063,-68.9439998807,-57.8508848718,-100,0.029708058597],
[-68.9439998807,-57.8508848718,-64.7405820305,-62.5192533413,-100,0.0301344672821],
[-64.7405820305,-62.5192533413,-60.2217545723,-66.883034293,-100,0.0305797818105],
[-60.2217545723,-66.883034293,-55.4095327793,-70.9209678246,-100,0.0310454419605],
[-55.4095327793,-70.9209678246,-50.3273613124,-74.61338153,-100,0.0315330458587],
[-50.3273613124,-74.61338153,-45.0,-77.9422863406,-100,0.0320443730997],
[-45.0,-77.9422863406,-39.453403211,-80.8914641669,-100,0.0325814121317],
[-39.453403211,-80.8914641669,-33.7145934074,-83.446546911,-100,0.0331463928695],
[-33.7145934074,-83.446546911,-27.8115294937,-85.5950864666,-100,0.0337418257555],
[-27.8115294937,-85.5950864666,-21.772970604,-87.3266153648,-100,0.0343705488337],
[-21.772970604,-87.3266153648,-15.62833599,-88.6326977711,-100,0.0350357848545],
[-15.62833599,-88.6326977711,-9.40756169409,-89.5069705831,-100,0.0357412110375],
[-9.40756169409,-89.5069705831,-3.14095470323,-89.9451744317,-100,0.03649104495],
[-3.14095470323,-89.9451744317,3.14095470323,-89.9451744317,-100,0.0372901510933],
[3.14095470323,-89.9451744317,9.40756169409,-89.5069705831,-100,0.038144174372],
[9.40756169409,-89.5069705831,15.62833599,-88.6326977711,-100,0.039059708844],
[15.62833599,-88.6326977711,21.772970604,-87.3266153648,-100,0.0400445133377],
[21.772970604,-87.3266153648,27.8115294937,-85.5950864666,-100,0.041107790137],
[27.8115294937,-85.5950864666,33.7145934074,-83.446546911,-100,0.0422605497757],
[33.7145934074,-83.446546911,39.453403211,-80.8914641669,-100,0.0435160952663],
[39.453403211,-80.8914641669,45.0,-77.9422863406,-100,0.044890674928],
[45.0,-77.9422863406,50.3273613124,-74.61338153,-100,0.0464043779216],
[50.3273613124,-74.61338153,55.4095327793,-70.9209678246,-100,0.048082386933],
[55.4095327793,-70.9209678246,60.2217545723,-66.883034293,-100,0.0499567696386],
[60.2217545723,-66.883034293,64.7405820305,-62.5192533413,-100,0.0520691063112],
[64.7405820305,-62.5192533413,68.9439998807,-57.8508848718,-100,0.0544744580864],
[68.9439998807,-57.8508848718,72.8115294937,-52.9006727063,-100,0.0572475681047],
[72.8115294937,-52.9006727063,76.3243286541,-47.692733781,-100,0.0604929522373],
[76.3243286541,-47.692733781,79.4652833573,-42.2524406507,-100,0.0643621404431],
[79.4652833573,-42.2524406507,82.2190911878,-36.6062978768,-100,0.0690849613752],
[82.2190911878,-36.6062978768,84.5723358707,-30.7818128993,-100,0.0750307967947],
[84.5723358707,-30.7818128993,86.5135526344,-24.8073620235,-100,0.0828411143611],
[86.5135526344,-24.8073620235,88.033284066,-18.7120521736,-100,0.0937586840964],
[88.033284066,-18.7120521736,89.1241261867,-12.5255790864,-100,0.11063358796],
[89.1241261867,-12.5255790864,89.7807645234,-6.27808263697,-100,0.142342281916],
[89.7807645234,-6.27808263697,90.0,-2.20436423847e-14,-100,0.263498943479],
[90.0,-2.20436423847e-14,84.9639990899,-1.09424620734e-14,100,0.228151973655],
[84.9639990899,-1.09424620734e-14,80.0,0.0,-100,0.221602128429],
[80.0,0.0,79.8051240208,5.58051789953,100,0.239632438884],
[79.8051240208,5.58051789953,79.2214454993,11.1338480768,100,0.133138819537],
[79.2214454993,11.1338480768,78.2518080587,16.6329352654,100,0.103813134856],
[78.2518080587,16.6329352654,76.9009356751,22.0509884654,100,0.0880971020249],
[76.9009356751,22.0509884654,75.1754096629,27.3616114661,100,0.0778969733294],
[75.1754096629,27.3616114661,73.0836366114,32.5389314461,100,0.0705864166161],
[73.0836366114,32.5389314461,70.6358074287,37.5577250229,100,0.065014269581],
[70.6358074287,37.5577250229,67.8438476925,42.3935411387,100,0.0605844510251],
[67.8438476925,42.3935411387,64.72135955,47.0228201834,100,0.0569529639691],
[64.72135955,47.0228201834,61.2835554495,51.4230087749,100,0.0539054317434],
[61.2835554495,51.4230087749,57.5471840271,55.5726696367,100,0.0513003390291],
[57.5471840271,55.5726696367,53.5304485087,59.4515860382,100,0.0490399827849],
[53.5304485087,59.4515860382,49.2529180261,63.0408602885,100,0.0470544369516],
[49.2529180261,63.0408602885,44.7354322777,66.3230058044,100,0.0452921553729],
[44.7354322777,66.3230058044,40.0,69.2820323028,100,0.0437141907509],
[40.0,69.2820323028,35.0696917431,71.9035237039,100,0.042290491898],
[35.0696917431,71.9035237039,29.9685274733,74.1747083653,100,0.0409974500785],
[29.9685274733,74.1747083653,24.72135955,76.0845213036,100,0.0398162250424],
[24.72135955,76.0845213036,19.353751648,77.6236581021,100,0.0387315738345],
[19.353751648,77.6236581021,13.8918542134,78.784620241,100,0.0377310130989],
[13.8918542134,78.784620241,8.36227706141,79.5617516295,100,0.0368042081434],
[8.36227706141,79.5617516295,2.7919597362,79.9512661615,100,0.0359425196033],
[2.7919597362,79.9512661615,-2.7919597362,79.9512661615,100,0.0351386618008],
[-2.7919597362,79.9512661615,-8.36227706141,79.5617516295,100,0.0343864416615],
[-8.36227706141,79.5617516295,-13.8918542134,78.784620241,100,0.0336805566593],
[-13.8918542134,78.784620241,-19.353751648,77.6236581021,100,0.0330164366364],
[-19.353751648,77.6236581021,-24.72135955,76.0845213036,100,0.0323901186649],
[-24.72135955,76.0845213036,-29.9685274733,74.1747083653,100,0.0317981470908],
[-29.9685274733,74.1747083653,-35.0696917431,71.9035237039,100,0.0312374929806],
[-35.0696917431,71.9035237039,-40.0,69.2820323028,100,0.0307054886723],
[-40.0,69.2820323028,-44.7354322777,66.3230058044,100,0.0301997741922],
[-44.7354322777,66.3230058044,-49.2529180261,63.0408602885,100,0.0297182530766],
[-49.2529180261,63.0408602885,-53.5304485087,59.4515860382,100,0.0292590557071],
[-53.5304485087,59.4515860382,-57.5471840271,55.5726696367,100,0.0288205086953],
[-57.5471840271,55.5726696367,-61.2835554495,51.4230087749,100,0.0284011091707],
[-61.2835554495,51.4230087749,-64.72135955,47.0228201834,100,0.0279995030704],
[-64.72135955,47.0228201834,-67.8438476925,42.3935411387,100,0.0276144667143],
[-67.8438476925,42.3935411387,-70.6358074287,37.5577250229,100,0.0272448910944],
[-70.6358074287,37.5577250229,-73.0836366114,32.5389314461,100,0.0268897684177],
[-73.0836366114,32.5389314461,-75.1754096629,27.3616114661,100,0.02654818053],
[-75.1754096629,27.3616114661,-76.9009356751,22.0509884654,100,0.0262192889186],
[-76.9009356751,22.0509884654,-78.2518080587,16.6329352654,100,0.0259023260444],
[-78.2518080587,16.6329352654,-79.2214454993,11.1338480768,100,0.0255965877998],
[-79.2214454993,11.1338480768,-79.8051240208,5.58051789953,100,0.025301426924],
[-79.8051240208,5.58051789953,-79.9987435864,0.0359789793681,100,0.0248558543322],
[-79.9987435864,0.0359789793681,-80.0,9.79717439318e-15,-100,0.000160404365342],
[-80.0,9.79717439318e-15,-79.8051240208,-5.58051789953,-100,0.0250198633267],
[-79.8051240208,-5.58051789953,-79.2214454993,-11.1338480768,-100,0.0253051681231],
[-79.2214454993,-11.1338480768,-78.2518080587,-16.6329352654,-100,0.0256004614905],
[-78.2518080587,-16.6329352654,-76.9009356751,-22.0509884654,-100,0.0259063402361],
[-76.9009356751,-22.0509884654,-75.1754096629,-27.3616114661,-100,0.0262234523155],
[-75.1754096629,-27.3616114661,-73.0836366114,-32.5389314461,-100,0.0265525026102],
[-73.0836366114,-32.5389314461,-70.6358074287,-37.5577250229,-100,0.0268942595244],
[-70.6358074287,-37.5577250229,-67.8438476925,-42.3935411387,-100,0.02724956254],
[-67.8438476925,-42.3935411387,-64.72135955,-47.0228201834,-100,0.0276193309002],
[-64.72135955,-47.0228201834,-61.2835554495,-51.4230087749,-100,0.0280045736258],
[-61.2835554495,-51.4230087749,-57.5471840271,-55.5726696367,-100,0.0284064011133],
[-57.5471840271,-55.5726696367,-53.5304485087,-59.4515860382,-100,0.0288260386188],
[-53.5304485087,-59.4515860382,-49.2529180261,-63.0408602885,-100,0.0292648420004],
[-49.2529180261,-63.0408602885,-44.7354322777,-66.3230058044,-100,0.0297243161814],
[-44.7354322777,-66.3230058044,-40.0,-69.2820323028,-100,0.0302061369074],
[-40.0,-69.2820323028,-35.0696917431,-71.9035237039,-100,0.0307121765152],
[-35.0696917431,-71.9035237039,-29.9685274733,-74.1747083653,-100,0.0312445346186],
[-29.9685274733,-74.1747083653,-24.72135955,-76.0845213036,-100,0.0318055748598],
[-24.72135955,-76.0845213036,-19.353751648,-77.6236581021,-100,0.0323979691956],
[-19.353751648,-77.6236581021,-13.8918542134,-78.784620241,-100,0.0330247516166],
[-13.8918542134,-78.784620241,-8.36227706141,-79.5617516295,-100,0.0336893837687],
[-8.36227706141,-79.5617516295,-2.7919597362,-79.9512661615,-100,0.0343958357263],
[-2.7919597362,-79.9512661615,2.7919597362,-79.9512661615,-100,0.0351486862328],
[2.7919597362,-79.9512661615,8.36227706141,-79.5617516295,-100,0.0359532482096],
[8.36227706141,-79.5617516295,13.8918542134,-78.784620241,-100,0.0368157274253],
[13.8918542134,-78.784620241,19.353751648,-77.6236581021,-100,0.0377434252047],
[19.353751648,-77.6236581021,24.72135955,-76.0845213036,-100,0.0387450003965],
[24.72135955,-76.0845213036,29.9685274733,-74.1747083653,-100,0.0398308122322],
[29.9685274733,-74.1747083653,35.0696917431,-71.9035237039,-100,0.041013375362],
[35.0696917431,-71.9035237039,40.0,-69.2820323028,-100,0.042307973213],
[40.0,-69.2820323028,44.7354322777,-66.3230058044,-100,0.0437334992033],
[44.7354322777,-66.3230058044,49.2529180261,-63.0408602885,-100,0.0453136331672],
[49.2529180261,-63.0408602885,53.5304485087,-59.4515860382,-100,0.0470785233132],
[53.5304485087,-59.4515860382,57.5471840271,-55.5726696367,-100,0.0490672524563],
[57.5471840271,-55.5726696367,61.2835554495,-51.4230087749,-100,0.0513315612476],
[61.2835554495,-51.4230087749,64.72135955,-47.0228201834,-100,0.053941663966],
[64.72135955,-47.0228201834,67.8438476925,-42.3935411387,-100,0.0569957074552],
[67.8438476925,-42.3935411387,70.6358074287,-37.5577250229,-100,0.0606359231478],
[70.6358074287,-37.5577250229,73.0836366114,-32.5389314461,-100,0.0650779128359],
[73.0836366114,-32.5389314461,75.1754096629,-27.3616114661,-100,0.0706679335237],
[75.1754096629,-27.3616114661,76.9009356751,-22.0509884654,-100,0.0780066795564],
[76.9009356751,-22.0509884654,78.2518080587,-16.6329352654,-100,0.0882561892665],
[78.2518080587,-16.6329352654,79.2214454993,-11.1338480768,-100,0.10407492085],
[79.2214454993,-11.1338480768,79.8051240208,-5.58051789953,-100,0.133701552576],
[79.8051240208,-5.58051789953,80.0,-1.95943487864e-14,-100,0.244135691214],
[80.0,-1.95943487864e-14,74.9639990899,-9.72663295417e-15,100,0.228151973655],
[74.9639990899,-9.72663295417e-15,70.0,0.0,-100,0.221602128429],
[70.0,0.0,69.8294835182,4.88295316209,100,0.21926216735],
[69.8294835182,4.88295316209,69.3187648119,9.7421170672,100,0.123880578302],
[69.3187648119,9.7421170672,68.4703320514,14.5538183572,100,0.0967996636463],
[68.4703320514,14.5538183572,67.2883187157,19.2946149072,100,0.0822192703735],
[67.2883187157,19.2946149072,65.778483455,23.9414100328,100,0.0727361089122],
[65.778483455,23.9414100328,63.948182035,28.4715650153,100,0.0659309875882],
[63.948182035,28.4715650153,61.8063315001,32.863009395,100,0.060739847841],
[61.8063315001,32.863009395,59.3633667309,37.0943484963,100,0.0566105308156],
[59.3633667309,37.0943484963,56.6311896062,41.1449676605,100,0.0532239187078],
[56.6311896062,41.1449676605,53.6231110183,44.9951326781,100,0.0503809253006],
[53.6231110183,44.9951326781,50.3537860237,48.6260859321,100,0.0479500204654],
[50.3537860237,48.6260859321,46.8391424451,52.0201377834,100,0.0458403356573],
[46.8391424451,52.0201377834,43.0963032728,55.1607527525,100,0.0439868017323],
[43.0963032728,55.1607527525,39.143503243,58.0326300789,100,0.0423414316998],
[39.143503243,58.0326300789,35.0,60.6217782649,100,0.0408679540392],
[35.0,60.6217782649,30.6859802752,62.9155832409,100,0.0395383732737],
[30.6859802752,62.9155832409,26.2224615391,64.9028698197,100,0.0383306896333],
[26.2224615391,64.9028698197,21.6311896062,66.5739561407,100,0.0372273426456],
[21.6311896062,66.5739561407,16.934532692,67.9207008393,100,0.0362141217746],
[16.934532692,67.9207008393,12.1553724367,68.9365427109,100,0.0352793869899],
[12.1553724367,68.9365427109,7.31699242874,69.6165326758,100,0.0344135001528],
[7.31699242874,69.6165326758,2.44296476918,69.9573578913,100,0.0336084029726],
[2.44296476918,69.9573578913,-2.44296476918,69.9573578913,100,0.0328572988707],
[-2.44296476918,69.9573578913,-7.31699242874,69.6165326758,100,0.0321544098072],
[-7.31699242874,69.6165326758,-12.1553724367,68.9365427109,100,0.03149478805],
[-12.1553724367,68.9365427109,-16.934532692,67.9207008393,100,0.0308741687899],
[-16.934532692,67.9207008393,-21.6311896062,66.5739561407,100,0.0302888535239],
[-21.6311896062,66.5739561407,-26.2224615391,64.9028698197,100,0.0297356168909],
[-26.2224615391,64.9028698197,-30.6859802752,62.9155832409,100,0.0292116315827],
[-30.6859802752,62.9155832409,-35.0,60.6217782649,100,0.0287144073253],
[-35.0,60.6217782649,-39.143503243,58.0326300789,100,0.028241740918],
[-39.143503243,58.0326300789,-43.0963032728,55.1607527525,100,0.0277916750363],
[-43.0963032728,55.1607527525,-46.8391424451,52.0201377834,100,0.0273624640386],
[-46.8391424451,52.0201377834,-50.3537860237,48.6260859321,100,0.0269525454106],
[-50.3537860237,48.6260859321,-53.6231110183,44.9951326781,100,0.0265605157822],
[-53.6231110183,44.9951326781,-56.6311896062,41.1449676605,100,0.0261851106741],
[-56.6311896062,41.1449676605,-59.3633667309,37.0943484963,100,0.0258251873089],
[-59.3633667309,37.0943484963,-61.8063315001,32.863009395,100,0.025479709953],
[-61.8063315001,32.863009395,-63.948182035,28.4715650153,100,0.0251477373598],
[-63.948182035,28.4715650153,-65.778483455,23.9414100328,100,0.0248284119676],
[-65.778483455,23.9414100328,-67.2883187157,19.2946149072,100,0.0245209505703],
[-67.2883187157,19.2946149072,-68.4703320514,14.5538183572,100,0.0242246362275],
[-68.4703320514,14.5538183572,-69.3187648119,9.7421170672,100,0.0239388112261],
[-69.3187648119,9.7421170672,-69.8294835182,4.88295316209,100,0.0236628709338],
[-69.8294835182,4.88295316209,-69.9987435864,0.035978979368,100,0.0232248214612],
[-69.9987435864,0.035978979368,-70.0,8.57252759403e-15,-100,0.000171450951789],
[-70.0,2.67513408375e-14,-69.8294835182,-4.88295316209,-100,0.0234001221698],
[-69.8294835182,-4.88295316209,-69.3187648119,-9.7421170672,-100,0.0236668683161],
[-69.3187648119,-9.7421170672,-68.4703320514,-14.5538183572,-100,0.0239429501208],
[-68.4703320514,-14.5538183572,-67.2883187157,-19.2946149072,-100,0.0242289251862],
[-67.2883187157,-19.2946149072,-65.778483455,-23.9414100328,-100,0.0245253988859],
[-65.778483455,-23.9414100328,-63.948182035,-28.4715650153,-100,0.0248330297594],
[-63.948182035,-28.4715650153,-61.8063315001,-32.863009395,-100,0.0251525356698],
[-61.8063315001,-32.863009395,-59.3633667309,-37.0943484963,-100,0.0254847008578],
[-59.3633667309,-37.0943484963,-56.6311896062,-41.1449676605,-100,0.025830384047],
[-56.6311896062,-41.1449676605,-53.6231110183,-44.9951326781,-100,0.0261905277942],
[-53.6231110183,-44.9951326781,-50.3537860237,-48.6260859321,-100,0.0265661693146],
[-50.3537860237,-48.6260859321,-46.8391424451,-52.0201377834,-100,0.0269584530669],
[-46.8391424451,-52.0201377834,-43.0963032728,-55.1607527525,-100,0.0273686454456],
[-43.0963032728,-55.1607527525,-39.143503243,-58.0326300789,-100,0.0277981520109],
[-39.143503243,-58.0326300789,-35.0,-60.6217782649,-100,0.0282485377914],
[-35.0,-60.6217782649,-30.6859802752,-62.9155832409,-100,0.0287215513284],
[-30.6859802752,-62.9155832409,-26.2224615391,-64.9028698197,-100,0.0292191533063],
[-26.2224615391,-64.9028698197,-21.6311896062,-66.5739561407,-100,0.0297435508381],
[-21.6311896062,-66.5739561407,-16.934532692,-67.9207008393,-100,0.0302972387775],
[-16.934532692,-67.9207008393,-12.1553724367,-68.9365427109,-100,0.0308830498255],
[-12.1553724367,-68.9365427109,-7.31699242874,-69.6165326758,-100,0.0315042157313],
[-7.31699242874,-69.6165326758,-2.44296476918,-69.9573578913,-100,0.032164442617],
[-2.44296476918,-69.9573578913,2.44296476918,-69.9573578913,-100,0.0328680044435],
[2.44296476918,-69.9573578913,7.31699242874,-69.6165326758,-100,0.0336198600226],
[7.31699242874,-69.6165326758,12.1553724367,-68.9365427109,-100,0.0344258009217],
[12.1553724367,-68.9365427109,16.934532692,-67.9207008393,-100,0.0352926403914],
[16.934532692,-67.9207008393,21.6311896062,-66.5739561407,-100,0.0362284574799],
[21.6311896062,-66.5739561407,26.2224615391,-64.9028698197,-100,0.0372429164631],
[26.2224615391,-64.9028698197,30.6859802752,-62.9155832409,-100,0.0383476906978],
[30.6859802752,-62.9155832409,35.0,-60.6217782649,-100,0.0395570338094],
[35.0,-60.6217782649,39.143503243,-58.0326300789,-100,0.0408885628624],
[39.143503243,-58.0326300789,43.0963032728,-55.1607527525,-100,0.0423643532826],
[43.0963032728,-55.1607527525,46.8391424451,-52.0201377834,-100,0.0440125037516],
[46.8391424451,-52.0201377834,50.3537860237,-48.6260859321,-100,0.0458694298881],
[50.3537860237,-48.6260859321,53.6231110183,-44.9951326781,-100,0.0479833254003],
[53.6231110183,-44.9951326781,56.6311896062,-41.1449676605,-100,0.050419565599],
[56.6311896062,-41.1449676605,59.3633667309,-37.0943484963,-100,0.0532694901599],
[59.3633667309,-37.0943484963,61.8063315001,-32.863009395,-100,0.0566653888123],
[61.8063315001,-32.863009395,63.948182035,-28.4715650153,-100,0.0608076459717],
[63.948182035,-28.4715650153,65.778483455,-23.9414100328,-100,0.0660177710852],
[65.778483455,-23.9414100328,67.2883187157,-19.2946149072,-100,0.072852795877],
[67.2883187157,-19.2946149072,68.4703320514,-14.5538183572,-100,0.0823882362647],
[68.4703320514,-14.5538183572,69.3187648119,-9.7421170672,-100,0.0970769756048],
[69.3187648119,-9.7421170672,69.8294835182,-4.88295316209,-100,0.124472842502],
[69.8294835182,-4.88295316209,70.0,-1.71450551881e-14,-100,0.223639223705],
[70.0,-1.71450551881e-14,64.9639990899,-8.5108038349e-15,100,0.228151973655],
[64.9639990899,-8.5108038349e-15,60.0,0.0,-100,0.221602128429],
[60.0,0.0,59.8538430156,4.18538842465,100,0.197559498762],
[59.8538430156,4.18538842465,59.4160841245,8.3503860576,100,0.113892541564],
[59.4160841245,8.3503860576,58.688856044,12.4747014491,100,0.0892423457423],
[58.688856044,12.4747014491,57.6757017563,16.538241349,100,0.0758900072089],
[57.6757017563,16.538241349,56.3815572472,20.5212085995,100,0.0671812756178],
[56.3815572472,20.5212085995,54.8127274586,24.4041985845,100,0.0609216476657],
[54.8127274586,24.4041985845,52.9768555715,28.1682937672,100,0.0561414596114],
[52.9768555715,28.1682937672,50.8828857694,31.795155854,100,0.0523361090756],
[50.8828857694,31.795155854,48.5410196625,35.2671151375,100,0.0492133954055],
[48.5410196625,35.2671151375,45.9626665871,38.5672565812,100,0.0465907647619],
[45.9626665871,38.5672565812,43.1603880203,41.6795022275,100,0.0443474773997],
[43.1603880203,41.6795022275,40.1478363815,44.5886895286,100,0.0424000470081],
[40.1478363815,44.5886895286,36.9396885195,47.2806452164,100,0.0406886485417],
[36.9396885195,47.2806452164,33.5515742082,49.7422543533,100,0.0391691365952],
[33.5515742082,49.7422543533,30.0,51.9615242271,100,0.0378081268881],
[30.0,51.9615242271,26.3022688073,53.927642778,100,0.0365798415324],
[26.3022688073,53.927642778,22.476395605,55.631031274,100,0.0354640160188],
[22.476395605,55.631031274,18.5410196625,57.0633909777,100,0.0344444698218],
[18.5410196625,57.0633909777,14.515313736,58.2177435766,100,0.0335081054254],
[14.515313736,58.2177435766,10.41889066,59.0884651807,100,0.0326441918094],
[10.41889066,59.0884651807,6.27170779606,59.6713137221,100,0.031843841528],
[6.27170779606,59.6713137221,2.09396980215,59.9634496211,100,0.0310996224401],
[2.09396980215,59.9634496211,-2.09396980215,59.9634496211,100,0.0304052649404],
[-2.09396980215,59.9634496211,-6.27170779606,59.6713137221,100,0.0297554381106],
[-6.27170779606,59.6713137221,-10.41889066,59.0884651807,100,0.0291455764005],
[-10.41889066,59.0884651807,-14.515313736,58.2177435766,100,0.0285717438882],
[-14.515313736,58.2177435766,-18.5410196625,57.0633909777,100,0.0280305268529],
[-18.5410196625,57.0633909777,-22.476395605,55.631031274,100,0.0275189479352],
[-22.476395605,55.631031274,-26.3022688073,53.927642778,100,0.0270343969387],
[-26.3022688073,53.927642778,-30.0,51.9615242271,100,0.0265745745883],
[-30.0,51.9615242271,-33.5515742082,49.7422543533,100,0.0261374464736],
[-33.5515742082,49.7422543533,-36.9396885195,47.2806452164,100,0.0257212050651],
[-36.9396885195,47.2806452164,-40.1478363815,44.5886895286,100,0.025324238184],
[-40.1478363815,44.5886895286,-43.1603880203,41.6795022275,100,0.0249451026672],
[-43.1603880203,41.6795022275,-45.9626665871,38.5672565812,100,0.024582502246],
[-45.9626665871,38.5672565812,-48.5410196625,35.2671151375,100,0.0242352688636],
[-48.5410196625,35.2671151375,-50.8828857694,31.795155854,100,0.0239023468172],
[-50.8828857694,31.795155854,-52.9768555715,28.1682937672,100,0.0235827792337],
[-52.9768555715,28.1682937672,-54.8127274586,24.4041985845,100,0.023275696483],
[-54.8127274586,24.4041985845,-56.3815572472,20.5212085995,100,0.0229803062097],
[-56.3815572472,20.5212085995,-57.6757017563,16.538241349,100,0.0226958847229],
[-57.6757017563,16.538241349,-58.688856044,12.4747014491,100,0.0224217695298],
[-58.688856044,12.4747014491,-59.4160841245,8.3503860576,100,0.0221573528386],
[-59.4160841245,8.3503860576,-59.8538430156,4.18538842465,100,0.0219020758846],
[-59.8538430156,4.18538842465,-59.9987435864,0.0359789793679,100,0.0214702944545],
[-59.9987435864,0.0359789793679,-60.0,7.34788079488e-15,-100,0.000185147132744],
[-60.0,7.34788079488e-15,-59.8538430156,-4.18538842465,-100,0.0216595943995],
[-59.8538430156,-4.18538842465,-59.4160841245,-8.3503860576,-100,0.0219063904898],
[-59.4160841245,-8.3503860576,-58.688856044,-12.4747014491,-100,0.022161820112],
[-58.688856044,-12.4747014491,-57.6757017563,-16.538241349,-100,0.0224263986925],
[-57.6757017563,-16.538241349,-56.3815572472,-20.5212085995,-100,0.022700685795],
[-56.3815572472,-20.5212085995,-54.8127274586,-24.4041985845,-100,0.0229852901017],
[-54.8127274586,-24.4041985845,-52.9768555715,-28.1682937672,-100,0.0232808751002],
[-52.9768555715,-28.1682937672,-50.8828857694,-31.795155854,-100,0.0235881655958],
[-50.8828857694,-31.795155854,-48.5410196625,-35.2671151375,-100,0.023907955196],
[-48.5410196625,-35.2671151375,-45.9626665871,-38.5672565812,-100,0.0242411149424],
[-45.9626665871,-38.5672565812,-43.1603880203,-41.6795022275,-100,0.0245886033045],
[-43.1603880203,-41.6795022275,-40.1478363815,-44.5886895286,-100,0.0249514777963],
[-40.1478363815,-44.5886895286,-36.9396885195,-47.2806452164,-100,0.0253309085376],
[-36.9396885195,-47.2806452164,-33.5515742082,-49.7422543533,-100,0.025728194156],
[-33.5515742082,-49.7422543533,-30.0,-51.9615242271,-100,0.0261447805224],
[-30.0,-51.9615242271,-26.3022688073,-53.927642778,-100,0.0265822829386],
[-26.3022688073,-53.927642778,-22.476395605,-55.631031274,-100,0.0270425125517],
[-22.476395605,-55.631031274,-18.5410196625,-57.0633909777,-100,0.0275275079844],
[-18.5410196625,-57.0633909777,-14.515313736,-58.2177435766,-100,0.0280395734425],
[-14.515313736,-58.2177435766,-10.41889066,-59.0884651807,-100,0.0285813249269],
[-10.41889066,-59.0884651807,-6.27170779606,-59.6713137221,-100,0.0291557466727],
[-6.27170779606,-59.6713137221,-2.09396980215,-59.9634496211,-100,0.0297662605997],
[-2.09396980215,-59.9634496211,2.09396980215,-59.9634496211,-100,0.0304168124767],
[2.09396980215,-59.9634496211,6.27170779606,-59.6713137221,-100,0.0311119797732],
[6.27170779606,-59.6713137221,10.41889066,-59.0884651807,-100,0.0318571079577],
[10.41889066,-59.0884651807,14.515313736,-58.2177435766,-100,0.032658484564],
[14.515313736,-58.2177435766,18.5410196625,-57.0633909777,-100,0.03352356405],
[18.5410196625,-57.0633909777,22.476395605,-55.631031274,-100,0.034461261956],
[22.476395605,-55.631031274,26.3022688073,-53.927642778,-100,0.0354823451137],
[26.3022688073,-53.927642778,30.0,-51.9615242271,-100,0.0365999573279],
[30.0,-51.9615242271,33.5515742082,-49.7422543533,-100,0.0378303398977],
[33.5515742082,-49.7422543533,36.9396885195,-47.2806452164,-100,0.0391938385461],
[36.9396885195,-47.2806452164,40.1478363815,-44.5886895286,-100,0.0407163418982],
[40.1478363815,-44.5886895286,43.1603880203,-41.6795022275,-100,0.0424313887708],
[43.1603880203,-41.6795022275,45.9626665871,-38.5672565812,-100,0.0443833461264],
[45.9626665871,-38.5672565812,48.5410196625,-35.2671151375,-100,0.0466323669211],
[48.5410196625,-35.2671151375,50.8828857694,-31.795155854,-100,0.0492624416206],
[50.8828857694,-31.795155854,52.9768555715,-28.1682937672,-100,0.0523951219482],
[52.9768555715,-28.1682937672,54.8127274586,-24.4041985845,-100,0.056214347587],
[54.8127274586,-24.4041985845,56.3815572472,-20.5212085995,-100,0.0610148677914],
[56.3815572472,-20.5212085995,57.6757017563,-16.538241349,-100,0.0673064650199],
[57.6757017563,-16.538241349,58.688856044,-12.4747014491,-100,0.0760709392451],
[58.688856044,-12.4747014491,59.4160841245,-8.3503860576,-100,0.0895382711677],
[59.4160841245,-8.3503860576,59.8538430156,-4.18538842465,-100,0.114519245589],
[59.8538430156,-4.18538842465,60.0,-1.46957615898e-14,-100,0.201783708638],
[60.0,-1.46957615898e-14,54.9639990899,-7.29497471563e-15,100,0.228151973655],
[54.9639990899,-7.29497471563e-15,50.0,0.0,-100,0.221602128429],
[50.0,0.0,49.878202513,3.48782368721,100,0.174222776368],
[49.878202513,3.48782368721,49.5134034371,6.958655048,100,0.102974495038],
[49.5134034371,6.958655048,48.9073800367,10.3955845409,100,0.080992568232],
[48.9073800367,10.3955845409,48.0630847969,13.7818677908,100,0.0689867211737],
[48.0630847969,13.7818677908,46.9846310393,17.1010071663,100,0.0611260047238],
[46.9846310393,17.1010071663,45.6772728821,20.3368321538,100,0.0554631033587],
[45.6772728821,20.3368321538,44.1473796429,23.4735781393,100,0.0511321196889],
[44.1473796429,23.4735781393,42.4024048078,26.4959632117,100,0.0476806800476],
[42.4024048078,26.4959632117,40.4508497187,29.3892626146,100,0.0448461197778],
[40.4508497187,29.3892626146,38.3022221559,32.1393804843,100,0.0424640121344],
[38.3022221559,32.1393804843,35.9669900169,34.7329185229,100,0.0404254408429],
[35.9669900169,34.7329185229,33.4565303179,37.1572412739,100,0.0386550040284],
[33.4565303179,37.1572412739,30.7830737663,39.4005376803,100,0.0370986167384],
[30.7830737663,39.4005376803,27.9596451735,41.4518786278,100,0.0357163366837],
[27.9596451735,41.4518786278,25.0,43.3012701892,100,0.0344779373446],
[25.0,43.3012701892,21.9185573395,44.939702315,100,0.0333600653846],
[21.9185573395,44.939702315,18.7303296708,46.3591927283,100,0.0323443529347],
[18.7303296708,46.3591927283,15.4508497187,47.5528258148,100,0.0314161273469],
[15.4508497187,47.5528258148,12.09609478,48.5147863138,100,0.0305635070146],
[12.09609478,48.5147863138,8.68240888335,49.2403876506,100,0.0297767537417],
[8.68240888335,49.2403876506,5.22642316338,49.7260947684,100,0.0290477998268],
[5.22642316338,49.7260947684,1.74497483513,49.969541351,100,0.0283698967505],
[1.74497483513,49.969541351,-1.74497483513,49.969541351,100,0.0277373501533],
[-1.74497483513,49.969541351,-5.22642316338,49.7260947684,100,0.0271453171209],
[-5.22642316338,49.7260947684,-8.68240888335,49.2403876506,100,0.026589649171],
[-8.68240888335,49.2403876506,-12.09609478,48.5147863138,100,0.0260667692428],
[-12.09609478,48.5147863138,-15.4508497187,47.5528258148,100,0.0255735743138],
[-15.4508497187,47.5528258148,-18.7303296708,46.3591927283,100,0.0251073575649],
[-18.7303296708,46.3591927283,-21.9185573395,44.939702315,100,0.0246657456171],
[-21.9185573395,44.939702315,-25.0,43.3012701892,100,0.0242466475098],
[-25.0,43.3012701892,-27.9596451735,41.4518786278,100,0.0238482129073],
[-27.9596451735,41.4518786278,-30.7830737663,39.4005376803,100,0.0234687976256],
[-30.7830737663,39.4005376803,-33.4565303179,37.1572412739,100,0.0231069350097],
[-33.4565303179,37.1572412739,-35.9669900169,34.7329185229,100,0.0227613120233],
[-35.9669900169,34.7329185229,-38.3022221559,32.1393804843,100,0.0224307491603],
[-38.3022221559,32.1393804843,-40.4508497187,29.3892626146,100,0.022114183477],
[-40.4508497187,29.3892626146,-42.4024048078,26.4959632117,100,0.021810654187],
[-42.4024048078,26.4959632117,-44.1473796429,23.4735781393,100,0.0215192903743],
[-44.1473796429,23.4735781393,-45.6772728821,20.3368321538,100,0.0212393004654],
[-45.6772728821,20.3368321538,-46.9846310393,17.1010071663,100,0.0209699631713],
[-46.9846310393,17.1010071663,-48.0630847969,13.7818677908,100,0.0207106196612],
[-48.0630847969,13.7818677908,-48.9073800367,10.3955845409,100,0.0204606667765],
[-48.9073800367,10.3955845409,-49.5134034371,6.958655048,100,0.0202195511245],
[-49.5134034371,6.958655048,-49.878202513,3.48782368721,100,0.0199867639203],
[-49.878202513,3.48782368721,-49.9987435864,0.0359789793681,100,0.0195591040157],
[-49.9987435864,0.0359789793681,-50.0,6.12323399574e-15,-100,0.000202755600638],
[-50.0,-2.96617262601e-15,-49.878202513,-3.48782368721,-100,0.0197664005247],
[-49.878202513,-3.48782368721,-49.5134034371,-6.958655048,-100,0.0199914856455],
[-49.5134034371,-6.958655048,-48.9073800367,-10.3955845409,-100,0.0202244398097],
[-48.9073800367,-10.3955845409,-48.0630847969,-13.7818677908,-100,0.020465732499],
[-48.0630847969,-13.7818677908,-46.9846310393,-17.1010071663,-100,0.0207158733708],
[-46.9846310393,-17.1010071663,-45.6772728821,-20.3368321538,-100,0.0209754167903],
[-45.6772728821,-20.3368321538,-44.1473796429,-23.4735781393,-100,0.021244967002],
[-44.1473796429,-23.4735781393,-42.4024048078,-26.4959632117,-100,0.0215251840536],
[-42.4024048078,-26.4959632117,-40.4508497187,-29.3892626146,-100,0.0218167906011],
[-40.4508497187,-29.3892626146,-38.3022221559,-32.1393804843,-100,0.0221205797589],
[-38.3022221559,-32.1393804843,-35.9669900169,-34.7329185229,-100,0.0224374241852],
[-35.9669900169,-34.7329185229,-33.4565303179,-37.1572412739,-100,0.0227682866433],
[-33.4565303179,-37.1572412739,-30.7830737663,-39.4005376803,-100,0.0231142323282],
[-30.7830737663,-39.4005376803,-27.9596451735,-41.4518786278,-100,0.0234764433197],
[-27.9596451735,-41.4518786278,-25.0,-43.3012701892,-100,0.0238562356088],
[-25.0,-43.3012701892,-21.9185573395,-44.939702315,-100,0.0242550792569],
[-21.9185573395,-44.939702315,-18.7303296708,-46.3591927283,-100,0.0246746223941],
[-18.7303296708,-46.3591927283,-15.4508497187,-47.5528258148,-100,0.0251167199497],
[-15.4508497187,-47.5528258148,-12.09609478,-48.5147863138,-100,0.0255834682608],
[-12.09609478,-48.5147863138,-8.68240888335,-49.2403876506,-100,0.0260772470343],
[-8.68240888335,-49.2403876506,-5.22642316338,-49.7260947684,-100,0.0266007705842],
[-5.22642316338,-49.7260947684,-1.74497483513,-49.969541351,-100,0.0271571508677],
[-1.74497483513,-49.969541351,1.74497483513,-49.969541351,-100,0.0277499756745],
[1.74497483513,-49.969541351,5.22642316338,-49.7260947684,-100,0.0283834064705],
[5.22642316338,-49.7260947684,8.68240888335,-49.2403876506,-100,0.0290623020154],
[8.68240888335,-49.2403876506,12.09609478,-48.5147863138,-100,0.0297923761877],
[12.09609478,-48.5147863138,15.4508497187,-47.5528258148,-100,0.0305804017958],
[15.4508497187,-47.5528258148,18.7303296708,-46.3591927283,-100,0.0314344771078],
[18.7303296708,-46.3591927283,21.9185573395,-44.939702315,-100,0.0323643792683],
[21.9185573395,-44.939702315,25.0,-43.3012701892,-100,0.0333820402055],
[25.0,-43.3012701892,27.9596451735,-41.4518786278,-100,0.0345021986047],
[27.9596451735,-41.4518786278,30.7830737663,-39.4005376803,-100,0.0357433105342],
[30.7830737663,-39.4005376803,33.4565303179,-37.1572412739,-100,0.0371288495188],
[33.4565303179,-37.1572412739,35.9669900169,-34.7329185229,-100,0.0386892096827],
[35.9669900169,-34.7329185229,38.3022221559,-32.1393804843,-100,0.0404645734056],
[38.3022221559,-32.1393804843,40.4508497187,-29.3892626146,-100,0.0425093806275],
[40.4508497187,-29.3892626146,42.4024048078,-26.4959632117,-100,0.0448995783495],
[42.4024048078,-26.4959632117,44.1473796429,-23.4735781393,-100,0.0477449595098],
[44.1473796429,-23.4735781393,45.6772728821,-20.3368321538,-100,0.0512114442932],
[45.6772728821,-20.3368321538,46.9846310393,-17.1010071663,-100,0.0555644370915],
[46.9846310393,-17.1010071663,48.0630847969,-13.7818677908,-100,0.0612618614065],
[48.0630847969,-13.7818677908,48.9073800367,-10.3955845409,-100,0.0691825529394],
[48.9073800367,-10.3955845409,49.5134034371,-6.958655048,-100,0.0813113417372],
[49.5134034371,-6.958655048,49.878202513,-3.48782368721,-100,0.103641876854],
[49.878202513,-3.48782368721,50.0,-1.22464679915e-14,-100,0.178256559632],
[50.0,-1.22464679915e-14,44.9639990899,-6.07914559636e-15,100,0.228151973655],
[44.9639990899,-6.07914559636e-15,40.0,0.0,-100,0.221602128429],
[40.0,0.0,39.9025620104,2.79025894977,100,0.148815753516],
[39.9025620104,2.79025894977,39.6107227497,5.5669240384,100,0.0908166853675],
[39.6107227497,5.5669240384,39.1259040294,8.31646763271,100,0.0718196014419],
[39.1259040294,8.31646763271,38.4504678375,11.0254942327,100,0.0613192180954],
[38.4504678375,11.0254942327,37.5877048314,13.680805733,100,0.0544053023911],
[37.5877048314,13.680805733,36.5418183057,16.269465723,100,0.0494078324647],
[36.5418183057,16.269465723,35.3179037144,18.7788625114,100,0.0455772863944],
[35.3179037144,18.7788625114,33.9219238463,21.1967705693,100,0.0425198156304],
[33.9219238463,21.1967705693,32.360679775,23.5114100917,100,0.0400058212586],
[32.360679775,23.5114100917,30.6417777248,25.7115043875,100,0.0378911520708],
[30.6417777248,25.7115043875,28.7735920135,27.7863348184,100,0.036080106097],
[28.7735920135,27.7863348184,26.7652242544,29.7257930191,100,0.0345063105191],
[26.7652242544,29.7257930191,24.626459013,31.5204301443,100,0.0331220871621],
[24.626459013,31.5204301443,22.3677161388,33.1615029022,100,0.0318921824189],
[22.3677161388,33.1615029022,20.0,34.6410161514,100,0.0307898905864],
[20.0,34.6410161514,17.5348458716,35.951761852,100,0.0297945604387],
[17.5348458716,35.951761852,14.9842637366,37.0873541827,100,0.0288899370308],
[14.9842637366,37.0873541827,12.360679775,38.0422606518,100,0.0280630269383],
[12.360679775,38.0422606518,9.67687582399,38.811829051,100,0.0273033021924],
[9.67687582399,38.811829051,6.94592710668,39.3923101205,100,0.0266021295511],
[6.94592710668,39.3923101205,4.18113853071,39.7808758147,100,0.0259523533935],
[4.18113853071,39.7808758147,1.3959798681,39.9756330808,100,0.0253479856355],
[1.3959798681,39.9756330808,-1.3959798681,39.9756330808,100,0.0247839716534],
[-1.3959798681,39.9756330808,-4.18113853071,39.7808758147,100,0.0242560111315],
[-4.18113853071,39.7808758147,-6.94592710668,39.3923101205,100,0.023760419224],
[-6.94592710668,39.3923101205,-9.67687582399,38.811829051,100,0.0232940177276],
[-9.67687582399,38.811829051,-12.360679775,38.0422606518,100,0.022854048889],
[-12.360679775,38.0422606518,-14.9842637366,37.0873541827,100,0.0224381064839],
[-14.9842637366,37.0873541827,-17.5348458716,35.951761852,100,0.0220440802211],
[-17.5348458716,35.951761852,-20.0,34.6410161514,100,0.0216701105299],
[-20.0,34.6410161514,-22.3677161388,33.1615029022,100,0.021314551514],
[-22.3677161388,33.1615029022,-24.626459013,31.5204301443,100,0.020975940384],
[-24.626459013,31.5204301443,-26.7652242544,29.7257930191,100,0.02065297207],
[-26.7652242544,29.7257930191,-28.7735920135,27.7863348184,100,0.0203444780085],
[-28.7735920135,27.7863348184,-30.6417777248,25.7115043875,100,0.0200494083159],
[-30.6417777248,25.7115043875,-32.360679775,23.5114100917,100,0.0197668167265],
[-32.360679775,23.5114100917,-33.9219238463,21.1967705693,100,0.0194958478041],
[-33.9219238463,21.1967705693,-35.3179037144,18.7788625114,100,0.0192357260303],
[-35.3179037144,18.7788625114,-36.5418183057,16.269465723,100,0.0189857464542],
[-36.5418183057,16.269465723,-37.5877048314,13.680805733,100,0.0187452666447],
[-37.5877048314,13.680805733,-38.4504678375,11.0254942327,100,0.0185136997379],
[-38.4504678375,11.0254942327,-39.1259040294,8.31646763271,100,0.0182905084055],
[-39.1259040294,8.31646763271,-39.6107227497,5.5669240384,100,0.0180751996057],
[-39.6107227497,5.5669240384,-39.9025620104,2.79025894977,100,0.0178673199977],
[-39.9025620104,2.79025894977,-39.9987435864,0.0359789793681,100,0.0174399019757],
[-39.9987435864,0.0359789793681,-40.0,4.89858719659e-15,-100,0.000226582253077],
[-40.0,-4.19081942515e-15,-39.9025620104,-2.79025894976,-100,0.0176715472807],
[-39.9025620104,-2.79025894976,-39.6107227497,-5.5669240384,-100,0.0178725912011],
[-39.6107227497,-5.5669240384,-39.1259040294,-8.31646763271,-100,0.0180806570085],
[-39.1259040294,-8.31646763271,-38.4504678375,-11.0254942327,-100,0.0182961632344],
[-38.4504678375,-11.0254942327,-37.5877048314,-13.680805733,-100,0.0185195641909],
[-37.5877048314,-13.680805733,-36.5418183057,-16.269465723,-100,0.0187513540016],
[-36.5418183057,-16.269465723,-35.3179037144,-18.7788625114,-100,0.0189920712031],
[-35.3179037144,-18.7788625114,-33.9219238463,-21.1967705693,-100,0.0192423040131],
[-33.9219238463,-21.1967705693,-32.360679775,-23.5114100917,-100,0.0195026963833],
[-32.360679775,-23.5114100917,-30.6417777248,-25.7115043875,-100,0.0197739549783],
[-30.6417777248,-25.7115043875,-28.7735920135,-27.7863348184,-100,0.0200568572538],
[-28.7735920135,-27.7863348184,-26.7652242544,-29.7257930191,-100,0.0203522608443],
[-26.7652242544,-29.7257930191,-24.626459013,-31.5204301443,-100,0.0206611145178],
[-24.626459013,-31.5204301443,-22.3677161388,-33.1615029022,-100,0.0209844710189],
[-22.3677161388,-33.1615029022,-20.0,-34.6410161514,-100,0.0213235021942],
[-20.0,-34.6410161514,-17.5348458716,-35.951761852,-100,0.0216795168985],
[-17.5348458716,-35.951761852,-14.9842637366,-37.0873541827,-100,0.0220539823047],
[-14.9842637366,-37.0873541827,-12.360679775,-38.0422606518,-100,0.0224485494107],
[-12.360679775,-38.0422606518,-9.67687582399,-38.811829051,-100,0.0228650837565],
[-9.67687582399,-38.811829051,-6.94592710668,-39.3923101205,-100,0.0233057026577],
[-6.94592710668,-39.3923101205,-4.18113853071,-39.7808758147,-100,0.0237728206556],
[-4.18113853071,-39.7808758147,-1.3959798681,-39.9756330808,-100,0.0242692054159],
[-1.3959798681,-39.9756330808,1.3959798681,-39.9756330808,-100,0.0247980470404],
[1.3959798681,-39.9756330808,4.18113853071,-39.7808758147,-100,0.0253630447693],
[4.18113853071,-39.7808758147,6.94592710668,-39.3923101205,-100,0.0259685164783],
[6.94592710668,-39.3923101205,9.67687582399,-38.811829051,-100,0.0266195384133],
[9.67687582399,-38.811829051,12.360679775,-38.0422606518,-100,0.0273221255526],
[12.360679775,-38.0422606518,14.9842637366,-37.0873541827,-100,0.0280834673447],
[14.9842637366,-37.0873541827,17.5348458716,-35.951761852,-100,0.0289122401105],
[17.5348458716,-35.951761852,20.0,-34.6410161514,-100,0.029819027442],
[20.0,-34.6410161514,22.3677161388,-33.1615029022,-100,0.0308168957058],
[22.3677161388,-33.1615029022,24.626459013,-31.5204301443,-100,0.0319221971902],
[24.626459013,-31.5204301443,26.7652242544,-29.7257930191,-100,0.0331557156457],
[26.7652242544,-29.7257930191,28.7735920135,-27.7863348184,-100,0.0345443413859],
[28.7735920135,-27.7863348184,30.6417777248,-25.7115043875,-100,0.0361235921378],
[30.6417777248,-25.7115043875,32.360679775,-23.5114100917,-100,0.0379415360115],
[32.360679775,-23.5114100917,33.9219238463,-21.1967705693,-100,0.0400651435448],
[33.9219238463,-21.1967705693,35.3179037144,-18.7788625114,-100,0.0425910758304],
[35.3179037144,-18.7788625114,36.5418183057,-16.269465723,-100,0.0456651134361],
[36.5418183057,-16.269465723,37.5877048314,-13.680805733,-100,0.0495198334781],
[37.5877048314,-13.680805733,38.4504678375,-11.0254942327,-100,0.0545550873718],
[38.4504678375,-11.0254942327,39.1259040294,-8.31646763271,-100,0.061534289563],
[39.1259040294,-8.31646763271,39.6107227497,-5.5669240384,-100,0.0721672630132],
[39.6107227497,-5.5669240384,39.9025620104,-2.79025894976,-100,0.0915326095905],
[39.9025620104,-2.79025894976,40.0,-9.79717439318e-15,-100,0.152603081624],
[40.0,-9.79717439318e-15,34.9639990899,-4.86331647708e-15,100,0.228151973655],
[34.9639990899,-4.86331647708e-15,30.0,0.0,-100,0.221602128429],
[30.0,0.0,29.9269215078,2.09269421232,100,0.120664660772],
[29.9269215078,2.09269421232,29.7080420622,4.1751930288,100,0.0768948379899],
[29.7080420622,4.1751930288,29.344428022,6.23735072453,100,0.0613297055497],
[29.344428022,6.23735072453,28.8378508781,8.26912067451,100,0.0525628360143],
[28.8378508781,8.26912067451,28.1907786236,10.2606042998,100,0.0467377993128],
[28.1907786236,10.2606042998,27.4063637293,12.2020992923,100,0.0425045464295],
[27.4063637293,12.2020992923,26.4884277858,14.0841468836,100,0.0392480232298],
[26.4884277858,14.0841468836,25.4414428847,15.897577927,100,0.0366419839791],
[25.4414428847,15.897577927,24.2705098312,17.6335575688,100,0.0344949938255],
[24.2705098312,17.6335575688,22.9813332936,19.2836282906,100,0.0326862817923],
[22.9813332936,19.2836282906,21.5801940102,20.8397511138,100,0.0311353697219],
[21.5801940102,20.8397511138,20.0739181908,22.2943447643,100,0.0297862779438],
[20.0739181908,22.2943447643,18.4698442598,23.6403226082,100,0.0285986971231],
[18.4698442598,23.6403226082,16.7757871041,24.8711271767,100,0.0275427624883],
[16.7757871041,24.8711271767,15.0,25.9807621135,100,0.0265958122373],
[15.0,25.9807621135,13.1511344037,26.963821389,100,0.0257402968383],
[13.1511344037,26.963821389,11.2381978025,27.815515637,100,0.0249623853959],
[11.2381978025,27.815515637,9.27050983125,28.5316954889,100,0.0242510100095],
[9.27050983125,28.5316954889,7.25765686799,29.1088717883,100,0.0235971941816],
[7.25765686799,29.1088717883,5.20944533001,29.5442325904,100,0.0229935705803],
[5.20944533001,29.5442325904,3.13585389803,29.835656861,100,0.0224340281214],
[3.13585389803,29.835656861,1.04698490108,29.9817248106,100,0.0219134492783],
[1.04698490108,29.9817248106,-1.04698490108,29.9817248106,100,0.0214275115643],
[-1.04698490108,29.9817248106,-3.13585389803,29.835656861,100,0.0209725354437],
[-3.13585389803,29.835656861,-5.20944533001,29.5442325904,100,0.0205453663589],
[-5.20944533001,29.5442325904,-7.25765686799,29.1088717883,100,0.0201432821829],
[-7.25765686799,29.1088717883,-9.27050983125,28.5316954889,100,0.0197639198643],
[-9.27050983125,28.5316954889,-11.2381978025,27.815515637,100,0.0194052167309],
[-11.2381978025,27.815515637,-13.1511344037,26.963821389,100,0.0190653631103],
[-13.1511344037,26.963821389,-15.0,25.9807621135,100,0.0187427637777],
[-15.0,25.9807621135,-16.7757871041,24.8711271767,100,0.0184360063482],
[-16.7757871041,24.8711271767,-18.4698442598,23.6403226082,100,0.0181438351841],
[-18.4698442598,23.6403226082,-20.0739181908,22.2943447643,100,0.0178651297134],
[-20.0739181908,22.2943447643,-21.5801940102,20.8397511138,100,0.0175988863053],
[-21.5801940102,20.8397511138,-22.9813332936,19.2836282906,100,0.017344203032],
[-22.9813332936,19.2836282906,-24.2705098312,17.6335575688,100,0.0171002667898],
[-24.2705098312,17.6335575688,-25.4414428847,15.897577927,100,0.0168663423589],
[-25.4414428847,15.897577927,-26.4884277858,14.0841468836,100,0.0166417630664],
[-26.4884277858,14.0841468836,-27.4063637293,12.2020992923,100,0.016425922782],
[-27.4063637293,12.2020992923,-28.1907786236,10.2606042998,100,0.0162182690274],
[-28.1907786236,10.2606042998,-28.8378508781,8.26912067451,100,0.0160182970203],
[-28.8378508781,8.26912067451,-29.344428022,6.23735072453,100,0.0158255445077],
[-29.344428022,6.23735072453,-29.7080420622,4.1751930288,100,0.0156395872665],
[-29.7080420622,4.1751930288,-29.9269215078,2.09269421232,100,0.0154600351735],
[-29.9269215078,2.09269421232,-29.9987435864,0.0359789793681,100,0.0150251461933],
[-29.9987435864,0.0359789793681,-30.0,3.67394039744e-15,-100,0.000261432184341],
[-30.0,3.67394039744e-15,-29.9269215078,-2.09269421232,-100,0.0152923981484],
[-29.9269215078,-2.09269421232,-29.7080420622,-4.1751930288,-100,0.0154661067857],
[-29.7080420622,-4.1751930288,-29.344428022,-6.23735072453,-100,0.0156458729875],
[-29.344428022,-6.23735072453,-28.8378508781,-8.26912067451,-100,0.0158320572246],
[-28.8378508781,-8.26912067451,-28.1907786236,-10.2606042998,-100,0.0160250507331],
[-28.1907786236,-10.2606042998,-27.4063637293,-12.2020992923,-100,0.0162252789754],
[-27.4063637293,-12.2020992923,-26.4884277858,-14.0841468836,-100,0.0164332055887],
[-26.4884277858,-14.0841468836,-25.4414428847,-15.897577927,-100,0.0166493369053],
[-25.4414428847,-15.897577927,-24.2705098312,-17.6335575688,-100,0.0168742271447],
[-24.2705098312,-17.6335575688,-22.9813332936,-19.2836282906,-100,0.0171084843987],
[-22.9813332936,-19.2836282906,-21.5801940102,-20.8397511138,-100,0.0173527775573],
[-21.5801940102,-20.8397511138,-20.0739181908,-22.2943447643,-100,0.0176078443552],
[-20.0739181908,-22.2943447643,-18.4698442598,-23.6403226082,-100,0.0178745007585],
[-18.4698442598,-23.6403226082,-16.7757871041,-24.8711271767,-100,0.018153651966],
[-16.7757871041,-24.8711271767,-15.0,-25.9807621135,-100,0.0184463053619],
[-15.0,-25.9807621135,-13.1511344037,-26.963821389,-100,0.0187535858431],
[-13.1511344037,-26.963821389,-11.2381978025,-27.815515637,-100,0.0190767540546],
[-11.2381978025,-27.815515637,-9.27050983125,-28.5316954889,-100,0.019417228207],
[-9.27050983125,-28.5316954889,-7.25765686799,-29.1088717883,-100,0.019776610339],
[-7.25765686799,-29.1088717883,-5.20944533001,-29.5442325904,-100,0.0201567181377],
[-5.20944533001,-29.5442325904,-3.13585389803,-29.835656861,-100,0.0205596237605],
[-3.13585389803,-29.835656861,-1.04698490108,-29.9817248106,-100,0.020987701558],
[-1.04698490108,-29.9817248106,1.04698490108,-29.9817248106,-100,0.0214436872129],
[1.04698490108,-29.9817248106,3.13585389803,-29.835656861,-100,0.0219307516723],
[3.13585389803,-29.835656861,5.20944533001,-29.5442325904,-100,0.0224525944541],
[5.20944533001,-29.5442325904,7.25765686799,-29.1088717883,-100,0.0230135626316],
[7.25765686799,-29.1088717883,9.27050983125,-28.5316954889,-100,0.0236188042895],
[9.27050983125,-28.5316954889,11.2381978025,-27.815515637,-100,0.0242744689162],
[11.2381978025,-27.815515637,13.1511344037,-26.963821389,-100,0.0249879727044],
[13.1511344037,-26.963821389,15.0,-25.9807621135,-100,0.0257683551741],
[15.0,-25.9807621135,16.7757871041,-24.8711271767,-100,0.0266267667741],
[16.7757871041,-24.8711271767,18.4698442598,-23.6403226082,-100,0.0275771484141],
[18.4698442598,-23.6403226082,20.0739181908,-22.2943447643,-100,0.0286371991728],
[20.0739181908,-22.2943447643,21.5801940102,-20.8397511138,-100,0.0298297888057],
[21.5801940102,-20.8397511138,22.9813332936,-19.2836282906,-100,0.0311850789857],
[22.9813332936,-19.2836282906,24.2705098312,-17.6335575688,-100,0.032743816305],
[24.2705098312,-17.6335575688,25.4414428847,-15.897577927,-100,0.0345626487149],
[25.4414428847,-15.897577927,26.4884277858,-14.0841468836,-100,0.0367231228286],
[26.4884277858,-14.0841468836,27.4063637293,-12.2020992923,-100,0.0393478164165],
[27.4063637293,-12.2020992923,28.1907786236,-10.2606042998,-100,0.0426314471723],
[28.1907786236,-10.2606042998,28.8378508781,-8.26912067451,-100,0.0469068239954],
[28.8378508781,-8.26912067451,29.344428022,-6.23735072453,-100,0.0528040107478],
[29.344428022,-6.23735072453,29.7080420622,-4.1751930288,-100,0.0617152348412],
[29.7080420622,-4.1751930288,29.9269215078,-2.09269421232,-100,0.0776684680014],
[29.9269215078,-2.09269421232,30.0,-7.34788079488e-15,-100,0.124115240637],
[30.0,-7.34788079488e-15,24.9639990899,-3.64748735781e-15,100,0.228151973655],
[24.9639990899,-3.64748735781e-15,20.0,0.0,-100,0.221602128429],
[20.0,0.0,19.9512810052,1.39512947488,100,0.0886245149948],
[19.9512810052,1.39512947488,19.8053613748,2.7834620192,100,0.0601912385216],
[19.8053613748,2.7834620192,19.5629520147,4.15823381636,100,0.0487437452454],
[19.5629520147,4.15823381636,19.2252339188,5.51274711634,100,0.0420729401221],
[19.2252339188,5.51274711634,18.7938524157,6.84040286651,100,0.0375648325227],
[18.7938524157,6.84040286651,18.2709091529,8.13473286152,100,0.0342547689192],
[18.2709091529,8.13473286152,17.6589518572,9.38943125572,100,0.0316907053258],
[17.6589518572,9.38943125572,16.9609619231,10.5983852847,100,0.0296285127696],
[16.9609619231,10.5983852847,16.1803398875,11.7557050458,100,0.0279231276469],
[16.1803398875,11.7557050458,15.3208888624,12.8557521937,100,0.0264821747442],
[15.3208888624,12.8557521937,14.3867960068,13.8931674092,100,0.0252436516411],
[14.3867960068,13.8931674092,13.3826121272,14.8628965095,100,0.0241641808236],
[13.3826121272,14.8628965095,12.3132295065,15.7602150721,100,0.0232123798916],
[12.3132295065,15.7602150721,11.1838580694,16.5807514511,100,0.0223649065028],
[11.1838580694,16.5807514511,10.0,17.3205080757,100,0.0216039892233],
[10.0,17.3205080757,8.76742293578,17.975880926,100,0.0209158264071],
[8.76742293578,17.975880926,7.49213186832,18.5436770913,100,0.0202895139815],
[7.49213186832,18.5436770913,6.1803398875,19.0211303259,100,0.0197163072772],
[6.1803398875,19.0211303259,4.83843791199,19.4059145255,100,0.019189100463],
[4.83843791199,19.4059145255,3.47296355334,19.6961550602,100,0.0187020516078],
[3.47296355334,19.6961550602,2.09056926535,19.8904379074,100,0.0182503075405],
[2.09056926535,19.8904379074,0.69798993405,19.9878165404,100,0.0178297985565],
[0.69798993405,19.9878165404,-0.69798993405,19.9878165404,100,0.0174370829348],
[-0.69798993405,19.9878165404,-2.09056926535,19.8904379074,100,0.0170692275843],
[-2.09056926535,19.8904379074,-3.47296355334,19.6961550602,100,0.0167237152961],
[-3.47296355334,19.6961550602,-4.83843791199,19.4059145255,100,0.016398371866],
[-4.83843791199,19.4059145255,-6.1803398875,19.0211303259,100,0.0160913082434],
[-6.1803398875,19.0211303259,-7.49213186832,18.5436770913,100,0.0158008741755],
[-7.49213186832,18.5436770913,-8.76742293578,17.975880926,100,0.015525620744],
[-8.76742293578,17.975880926,-10.0,17.3205080757,100,0.0152642698424],
[-10.0,17.3205080757,-11.1838580694,16.5807514511,100,0.0150156891263],
[-11.1838580694,16.5807514511,-12.3132295065,15.7602150721,100,0.0147788713124],
[-12.3132295065,15.7602150721,-13.3826121272,14.8628965095,100,0.014552916961],
[-13.3826121272,14.8628965095,-14.3867960068,13.8931674092,100,0.0143370200698],
[-14.3867960068,13.8931674092,-15.3208888624,12.8557521937,100,0.0141304559525],
[-15.3208888624,12.8557521937,-16.1803398875,11.7557050458,100,0.0139325709858],
[-16.1803398875,11.7557050458,-16.9609619231,10.5983852847,100,0.0137427738928],
[-16.9609619231,10.5983852847,-17.6589518572,9.38943125572,100,0.0135605282996],
[-17.6589518572,9.38943125572,-18.2709091529,8.13473286152,100,0.0133853463494],
[-18.2709091529,8.13473286152,-18.7938524157,6.84040286651,100,0.0132167832017],
[-18.7938524157,6.84040286651,-19.2252339188,5.51274711634,100,0.0130544322752],
[-19.2252339188,5.51274711634,-19.5629520147,4.15823381636,100,0.0128979211183],
[-19.5629520147,4.15823381636,-19.8053613748,2.7834620192,100,0.0127469078118],
[-19.8053613748,2.7834620192,-19.9512810052,1.39512947488,100,0.0126010778238],
[-19.9512810052,1.39512947488,-19.9987435864,0.035978979368,100,0.0121405384595],
[-19.9987435864,0.035978979368,-20.0,2.44929359829e-15,-100,0.000319693513025],
[-20.0,2.44929359829e-15,-19.9512810052,-1.39512947488,-100,0.0124672951284],
[-19.9512810052,-1.39512947488,-19.8053613748,-2.7834620192,-100,0.0126084773637],
[-19.8053613748,-2.7834620192,-19.5629520147,-4.15823381636,-100,0.0127545674056],
[-19.5629520147,-4.15823381636,-19.2252339188,-5.51274711634,-100,0.0129058563644],
[-19.2252339188,-5.51274711634,-18.7938524157,-6.84040286651,-100,0.0130626601139],
[-18.7938524157,-6.84040286651,-18.2709091529,-8.13473286152,-100,0.0132253220677],
[-18.2709091529,-8.13473286152,-17.6589518572,-9.38943125572,-100,0.0133942163456],
[-17.6589518572,-9.38943125572,-16.9609619231,-10.5983852847,-100,0.0135697513962],
[-16.9609619231,-10.5983852847,-16.1803398875,-11.7557050458,-100,0.0137523741564],
[-16.1803398875,-11.7557050458,-15.3208888624,-12.8557521937,-100,0.0139425748441],
[-15.3208888624,-12.8557521937,-14.3867960068,-13.8931674092,-100,0.0141408925006],
[-14.3867960068,-13.8931674092,-13.3826121272,-14.8628965095,-100,0.0143479214261],
[-13.3826121272,-14.8628965095,-12.3132295065,-15.7602150721,-100,0.0145643186844],
[-12.3132295065,-15.7602150721,-11.1838580694,-16.5807514511,-100,0.0147908128904],
[-11.1838580694,-16.5807514511,-10.0,-17.3205080757,-100,0.0150282145516],
[-10.0,-17.3205080757,-8.76742293578,-17.975880926,-100,0.0152774282961],
[-8.76742293578,-17.975880926,-7.49213186832,-18.5436770913,-100,0.0155394674097],
[-7.49213186832,-18.5436770913,-6.1803398875,-19.0211303259,-100,0.0158154712153],
[-6.1803398875,-19.0211303259,-4.83843791199,-19.4059145255,-100,0.0161067259749],
[-4.83843791199,-19.4059145255,-3.47296355334,-19.6961550602,-100,0.0164146901923],
[-3.47296355334,-19.6961550602,-2.09056926535,-19.8904379074,-100,0.0167410254534],
[-2.09056926535,-19.8904379074,-0.69798993405,-19.9878165404,-100,0.0170876342963],
[-0.69798993405,-19.9878165404,0.69798993405,-19.9878165404,-100,0.0174567070896],
[0.69798993405,-19.9878165404,2.09056926535,-19.8904379074,-100,0.0178507805623],
[2.09056926535,-19.8904379074,3.47296355334,-19.6961550602,-100,0.0182728115755],
[3.47296355334,-19.6961550602,4.83843791199,-19.4059145255,-100,0.0187262710564],
[4.83843791199,-19.4059145255,6.1803398875,-19.0211303259,-100,0.0192152649552],
[6.1803398875,-19.0211303259,7.49213186832,-18.5436770913,-100,0.0197446919181],
[7.49213186832,-18.5436770913,8.76742293578,-17.975880926,-100,0.0203204516267],
[8.76742293578,-17.975880926,10.0,-17.3205080757,-100,0.0209497242466],
[10.0,-17.3205080757,11.1838580694,-16.5807514511,-100,0.0216413515839],
[11.1838580694,-16.5807514511,12.3132295065,-15.7602150721,-100,0.0224063668279],
[12.3132295065,-15.7602150721,13.3826121272,-14.8628965095,-100,0.0232587466081],
[13.3826121272,-14.8628965095,14.3867960068,-13.8931674092,-100,0.0242165048362],
[14.3867960068,-13.8931674092,15.3208888624,-12.8557521937,-100,0.0253033286419],
[15.3208888624,-12.8557521937,16.1803398875,-11.7557050458,-100,0.0265511057671],
[16.1803398875,-11.7557050458,16.9609619231,-10.5983852847,-100,0.0280039816047],
[16.9609619231,-10.5983852847,17.6589518572,-9.38943125572,-100,0.0297251775836],
[17.6589518572,-9.38943125572,18.2709091529,-8.13473286152,-100,0.0318091119794],
[18.2709091529,-8.13473286152,18.7938524157,-6.84040286651,-100,0.0344045177418],
[18.7938524157,-6.84040286651,19.2252339188,-5.51274711634,-100,0.0377627452714],
[19.2252339188,-5.51274711634,19.5629520147,-4.15823381636,-100,0.0423519825758],
[19.5629520147,-4.15823381636,19.8053613748,-2.7834620192,-100,0.0491806270147],
[19.8053613748,-2.7834620192,19.9512810052,-1.39512947488,-100,0.0610282960395],
[19.9512810052,-1.39512947488,20.0,-4.89858719659e-15,-100,0.091574785584],
[20.0,-4.89858719659e-15,14.9639990899,-2.43165823854e-15,100,0.228151973655],
[14.9639990899,-2.43165823854e-15,10.0,0.0,-100,0.221602128429],
[10.0,0.0,9.9756405026,0.697564737441,100,0.0504265227885],
[9.9756405026,0.697564737441,9.90268068742,1.3917310096,100,0.0381979922063],
[9.90268068742,1.3917310096,9.78147600734,2.07911690818,100,0.0320401457771],
[9.78147600734,2.07911690818,9.61261695938,2.75637355817,100,0.0281510927445],
[9.61261695938,2.75637355817,9.39692620786,3.42020143326,100,0.0254070228519],
[9.39692620786,3.42020143326,9.13545457643,4.06736643076,100,0.0233367223934],
[9.13545457643,4.06736643076,8.82947592859,4.69471562786,100,0.021702668588],
[8.82947592859,4.69471562786,8.48048096156,5.29919264233,100,0.0203702715341],
[8.48048096156,5.29919264233,8.09016994375,5.87785252292,100,0.0192567654276],
[8.09016994375,5.87785252292,7.66044443119,6.42787609687,100,0.0183080670951],
[7.66044443119,6.42787609687,7.19339800339,6.94658370459,100,0.0174871357306],
[7.19339800339,6.94658370459,6.69130606359,7.43144825477,100,0.0167676331887],
[6.69130606359,7.43144825477,6.15661475326,7.88010753607,100,0.0161302485341],
[6.15661475326,7.88010753607,5.59192903471,8.29037572555,100,0.0155604567918],
[5.59192903471,8.29037572555,5.0,8.66025403784,100,0.015047093987],
[5.0,8.66025403784,4.38371146789,8.98794046299,100,0.0145814187826],
[4.38371146789,8.98794046299,3.74606593416,9.27183854567,100,0.0141564757397],
[3.74606593416,9.27183854567,3.09016994375,9.51056516295,100,0.0137666519073],
[3.09016994375,9.51056516295,2.419218956,9.70295726276,100,0.013407360976],
[2.419218956,9.70295726276,1.73648177667,9.84807753012,100,0.0130748137682],
[1.73648177667,9.84807753012,1.04528463268,9.94521895368,100,0.0127658484857],
[1.04528463268,9.94521895368,0.348994967025,9.99390827019,100,0.0124778031555],
[0.348994967025,9.99390827019,-0.348994967025,9.99390827019,100,0.0122084184079],
[-0.348994967025,9.99390827019,-1.04528463268,9.94521895368,100,0.0119557624157],
[-1.04528463268,9.94521895368,-1.73648177667,9.84807753012,100,0.0117181722591],
[-1.73648177667,9.84807753012,-2.419218956,9.70295726276,100,0.0114942076326],
[-2.419218956,9.70295726276,-3.09016994375,9.51056516295,100,0.0112826139339],
[-3.09016994375,9.51056516295,-3.74606593416,9.27183854567,100,0.0110822925689],
[-3.74606593416,9.27183854567,-4.38371146789,8.98794046299,100,0.0108922768619],
[-4.38371146789,8.98794046299,-5.0,8.66025403784,100,0.0107117123614],
[-5.0,8.66025403784,-5.59192903471,8.29037572555,100,0.0105398406256],
[-5.59192903471,8.29037572555,-6.15661475326,7.88010753607,100,0.0103759857815],
[-6.15661475326,7.88010753607,-6.69130606359,7.43144825477,100,0.0102195433148],
[-6.69130606359,7.43144825477,-7.19339800339,6.94658370459,100,0.0100699706666],
[-7.19339800339,6.94658370459,-7.66044443119,6.42787609687,100,0.00992677930033],
[-7.66044443119,6.42787609687,-8.09016994375,5.87785252292,100,0.00978952797682],
[-8.09016994375,5.87785252292,-8.48048096156,5.29919264233,100,0.00965781702491],
[-8.48048096156,5.29919264233,-8.82947592859,4.69471562786,100,0.00953128343809],
[-8.82947592859,4.69471562786,-9.13545457643,4.06736643076,100,0.00940959666006],
[-9.13545457643,4.06736643076,-9.39692620786,3.42020143326,100,0.00929245494776],
[-9.39692620786,3.42020143326,-9.61261695938,2.75637355817,100,0.00917958222046],
[-9.61261695938,2.75637355817,-9.78147600734,2.07911690818,100,0.00907072532007],
[-9.78147600734,2.07911690818,-9.90268068742,1.3917310096,100,0.00896565162067],
[-9.90268068742,1.3917310096,-9.9756405026,0.697564737441,100,0.00886414693581],
[-9.9756405026,0.697564737441,-9.99159087788,0.240805750859,100,0.00575079383108],
[-9.99159087788,0.240805750859,-10.0,1.22464679915e-15,-100,0.00302666162899],
[-10.0,3.49699845458e-15,-9.9756405026,-0.697564737441,-100,0.00883341517597],
[-9.9756405026,-0.697564737441,-9.90268068742,-1.3917310096,-100,0.00893385574115],
[-9.90268068742,-1.3917310096,-9.78147600734,-2.07911690818,-100,0.00903780245758],
[-9.78147600734,-2.07911690818,-9.61261695938,-2.75637355817,-100,0.00914546418659],
[-9.61261695938,-2.75637355817,-9.39692620786,-3.42020143326,-100,0.00925706763458],
[-9.39692620786,-3.42020143326,-9.13545457643,-4.06736643076,-100,0.00937285936262],
[-9.13545457643,-4.06736643076,-8.82947592859,-4.69471562786,-100,0.00949310807963],
[-8.82947592859,-4.69471562786,-8.48048096156,-5.29919264233,-100,0.00961810726787],
[-8.48048096156,-5.29919264233,-8.09016994375,-5.87785252292,-100,0.00974817819922],
[-8.09016994375,-5.87785252292,-7.66044443119,-6.42787609687,-100,0.00988367341274],
[-7.66044443119,-6.42787609687,-7.19339800339,-6.94658370459,-100,0.0100249807395],
[-7.19339800339,-6.94658370459,-6.69130606359,-7.43144825477,-100,0.0101725279791],
[-6.69130606359,-7.43144825477,-6.15661475326,-7.88010753607,-100,0.0103267883572],
[-6.15661475326,-7.88010753607,-5.59192903471,-8.29037572555,-100,0.0104882869218],
[-5.59192903471,-8.29037572555,-5.0,-8.66025403784,-100,0.0106576080764],
[-5.0,-8.66025403784,-4.38371146789,-8.98794046299,-100,0.0108354044962],
[-4.38371146789,-8.98794046299,-3.74606593416,-9.27183854567,-100,0.0110224077385],
[-3.74606593416,-9.27183854567,-3.09016994375,-9.51056516295,-100,0.0112194409407],
[-3.09016994375,-9.51056516295,-2.419218956,-9.70295726276,-100,0.0114274341095],
[-2.419218956,-9.70295726276,-1.73648177667,-9.84807753012,-100,0.0116474426508],
[-1.73648177667,-9.84807753012,-1.04528463268,-9.94521895368,-100,0.0118806699851],
[-1.04528463268,-9.94521895368,-0.348994967025,-9.99390827019,-100,0.0121284953566],
[-0.348994967025,-9.99390827019,0.348994967025,-9.99390827019,-100,0.012392508308],
[0.348994967025,-9.99390827019,1.04528463268,-9.94521895368,-100,0.0126745517956],
[1.04528463268,-9.94521895368,1.73648177667,-9.84807753012,-100,0.0129767766281],
[1.73648177667,-9.84807753012,2.419218956,-9.70295726276,-100,0.0133017109185],
[2.419218956,-9.70295726276,3.09016994375,-9.51056516295,-100,0.0136523497054],
[3.09016994375,-9.51056516295,3.74606593416,-9.27183854567,-100,0.0140322720523],
[3.74606593416,-9.27183854567,4.38371146789,-8.98794046299,-100,0.0144457961758],
[4.38371146789,-8.98794046299,5.0,-8.66025403784,-100,0.0148981881203],
[5.0,-8.66025403784,5.59192903471,-8.29037572555,-100,0.0153959472986],
[5.59192903471,-8.29037572555,6.15661475326,-7.88010753607,-100,0.0159472047867],
[6.15661475326,-7.88010753607,6.69130606359,-7.43144825477,-100,0.0165622911021],
[6.69130606359,-7.43144825477,7.19339800339,-6.94658370459,-100,0.0172545659262],
[7.19339800339,-6.94658370459,7.66044443119,-6.42787609687,-100,0.018041665831],
[7.66044443119,-6.42787609687,8.09016994375,-5.87785252292,-100,0.0189474443196],
[8.09016994375,-5.87785252292,8.48048096156,-5.29919264233,-100,0.0200051098874],
[8.48048096156,-5.29919264233,8.82947592859,-4.69471562786,-100,0.0212625489385],
[8.82947592859,-4.69471562786,9.13545457643,-4.06736643076,-100,0.0227918972009],
[9.13545457643,-4.06736643076,9.39692620786,-3.42020143326,-100,0.0247080639184],
[9.39692620786,-3.42020143326,9.61261695938,-2.75637355817,-100,0.0272081943497],
[9.61261695938,-2.75637355817,9.78147600734,-2.07911690818,-100,0.0306675598593],
[9.78147600734,-2.07911690818,9.90268068742,-1.3917310096,-100,0.0359226288698],
[9.90268068742,-1.3917310096,9.9756405026,-0.697564737441,-100,0.0454346419114],
[9.9756405026,-0.697564737441,10.0,-2.44929359829e-15,-100,0.0745425313097],
[10.0,-2.44929359829e-15,-44.9933914921,-49.9939922655,100,1.16412866827],
[-44.9933914921,-49.9939922655,-100,-100,-100,1.1673921714],
[-100,-100,0.231281934072,-100.0,100,1.36374177464],
[0.231281934072,-100.0,100,-100,-100,1.30697506241],
[100,-100,100.0,0.0,100,1.30860649778],
[100.0,0.0,99.756405026,6.97564737441,100,0.0483819532264],
[99.756405026,6.97564737441,99.0268068742,13.917310096,100,0.0468363170735],
[99.0268068742,13.917310096,97.8147600734,20.7911690818,100,0.045429980639],
[97.8147600734,20.7911690818,96.1261695938,27.5637355817,100,0.0441431980494],
[96.1261695938,27.5637355817,93.9692620786,34.2020143326,100,0.0429599330958],
[93.9692620786,34.2020143326,91.3545457643,40.6736643076,100,0.041867008546],
[91.3545457643,40.6736643076,88.2947592859,46.9471562786,100,0.0408534823895],
[88.2947592859,46.9471562786,84.8048096156,52.9919264233,100,0.0399101827619],
[84.8048096156,52.9919264233,80.9016994375,58.7785252292,100,0.0390293559412],
[80.9016994375,58.7785252292,76.6044443119,64.2787609687,100,0.0382043962944],
[76.6044443119,64.2787609687,71.9339800339,69.4658370459,100,0.0374296365383],
[71.9339800339,69.4658370459,66.9130606359,74.3144825477,100,0.0367001830128],
[66.9130606359,74.3144825477,61.5661475326,78.8010753607,100,0.0360117849773],
[61.5661475326,78.8010753607,55.9192903471,82.9037572555,100,0.0353607299237],
[55.9192903471,82.9037572555,50.0,86.6025403784,100,0.0347437589998],
[50.0,86.6025403784,43.8371146789,89.8794046299,100,0.03415799813],
[43.8371146789,89.8794046299,37.4606593416,92.7183854567,100,0.0336009015024],
[37.4606593416,92.7183854567,30.9016994375,95.1056516295,100,0.0330702048819],
[30.9016994375,95.1056516295,24.19218956,97.0295726276,100,0.0325638867902],
[24.19218956,97.0295726276,17.3648177667,98.4807753012,100,0.0320801360338],
[17.3648177667,98.4807753012,10.4528463268,99.4521895368,100,0.0316173243879],
[10.4528463268,99.4521895368,3.48994967025,99.9390827019,100,0.0311739834966],
[3.48994967025,99.9390827019,-3.48994967025,99.9390827019,100,0.0307487852394],
[-3.48994967025,99.9390827019,-10.4528463268,99.4521895368,100,0.0303405249678],
[-10.4528463268,99.4521895368,-17.3648177667,98.4807753012,100,0.029948107127],
[-17.3648177667,98.4807753012,-24.19218956,97.0295726276,100,0.0295705328734],
[-24.19218956,97.0295726276,-30.9016994375,95.1056516295,100,0.029206889367],
[-30.9016994375,95.1056516295,-37.4606593416,92.7183854567,100,0.0288563404785],
[-37.4606593416,92.7183854567,-43.8371146789,89.8794046299,100,0.0285181186949],
[-43.8371146789,89.8794046299,-50.0,86.6025403784,100,0.028191518045],
[-50.0,86.6025403784,-52.1196677172,85.2780249857,100,0.0100179373915],
[-52.1196677172,85.2780249857,-55.9192903471,82.9037572555,0,0.0179217317844],
[-55.9192903471,82.9037572555,-61.5661475326,78.8010753607,0,0.027919597362],
[-61.5661475326,78.8010753607,-66.9130606359,74.3144825477,0,0.027919597362],
[-66.9130606359,74.3144825477,-71.9339800339,69.4658370459,0,0.027919597362],
[-71.9339800339,69.4658370459,-76.6044443119,64.2787609687,0,0.027919597362],
[-76.6044443119,64.2787609687,-80.9016994375,58.7785252292,0,0.027919597362],
[-80.9016994375,58.7785252292,-84.8048096156,52.9919264233,0,0.027919597362],
[-84.8048096156,52.9919264233,-88.2947592859,46.9471562786,0,0.027919597362],
[-88.2947592859,46.9471562786,-91.3545457643,40.6736643076,0,0.027919597362],
[-91.3545457643,40.6736643076,-93.9692620786,34.2020143326,0,0.027919597362],
[-93.9692620786,34.2020143326,-96.1261695938,27.5637355817,0,0.027919597362],
[-96.1261695938,27.5637355817,-97.8147600734,20.7911690818,0,0.027919597362],
[-97.8147600734,20.7911690818,-99.0268068742,13.917310096,0,0.027919597362],
[-99.0268068742,13.917310096,-99.756405026,6.97564737441,0,0.027919597362],
[-99.756405026,6.97564737441,-100.0,1.24344978758e-14,0,0.027919597362],
[-100.0,1.22464679915e-14,-99.756405026,-6.97564737441,0,0.027919597362],
[-99.756405026,-6.97564737441,-99.0268068742,-13.917310096,0,0.027919597362],
[-99.0268068742,-13.917310096,-97.8147600734,-20.7911690818,0,0.027919597362],
[-97.8147600734,-20.7911690818,-96.1261695938,-27.5637355817,0,0.027919597362],
[-96.1261695938,-27.5637355817,-93.9692620786,-34.2020143326,0,0.027919597362],
[-93.9692620786,-34.2020143326,-91.3545457643,-40.6736643076,0,0.027919597362],
[-91.3545457643,-40.6736643076,-88.2947592859,-46.9471562786,0,0.027919597362],
[-88.2947592859,-46.9471562786,-84.8048096156,-52.9919264233,0,0.027919597362],
[-84.8048096156,-52.9919264233,-80.9016994375,-58.7785252292,0,0.027919597362],
[-80.9016994375,-58.7785252292,-76.6044443119,-64.2787609687,0,0.027919597362],
[-76.6044443119,-64.2787609687,-71.9339800339,-69.4658370459,0,0.027919597362],
[-71.9339800339,-69.4658370459,-66.9130606359,-74.3144825477,0,0.027919597362],
[-66.9130606359,-74.3144825477,-61.5661475326,-78.8010753607,0,0.027919597362],
[-61.5661475326,-78.8010753607,-55.9192903471,-82.9037572555,0,0.027919597362],
[-55.9192903471,-82.9037572555,-52.1196677172,-85.2780249857,0,0.0179217317844],
[-52.1196677172,-85.2780249857,-50.0,-86.6025403784,-100,0.0100179373915],
[-50.0,-86.6025403784,-43.8371146789,-89.8794046299,-100,0.028191518045],
[-43.8371146789,-89.8794046299,-37.4606593416,-92.7183854567,-100,0.0285181186949],
[-37.4606593416,-92.7183854567,-30.9016994375,-95.1056516295,-100,0.0288563404785],
[-30.9016994375,-95.1056516295,-24.19218956,-97.0295726276,-100,0.029206889367],
[-24.19218956,-97.0295726276,-17.3648177667,-98.4807753012,-100,0.0295705328734],
[-17.3648177667,-98.4807753012,-10.4528463268,-99.4521895368,-100,0.029948107127],
[-10.4528463268,-99.4521895368,-3.48994967025,-99.9390827019,-100,0.0303405249678],
[-3.48994967025,-99.9390827019,3.48994967025,-99.9390827019,-100,0.0307487852394],
[3.48994967025,-99.9390827019,10.4528463268,-99.4521895368,-100,0.0311739834966],
[10.4528463268,-99.4521895368,17.3648177667,-98.4807753012,-100,0.0316173243879],
[17.3648177667,-98.4807753012,24.19218956,-97.0295726276,-100,0.0320801360338],
[24.19218956,-97.0295726276,30.9016994375,-95.1056516295,-100,0.0325638867902],
[30.9016994375,-95.1056516295,37.4606593416,-92.7183854567,-100,0.0330702048819],
[37.4606593416,-92.7183854567,43.8371146789,-89.8794046299,-100,0.0336009015024],
[43.8371146789,-89.8794046299,50.0,-86.6025403784,-100,0.03415799813],
[50.0,-86.6025403784,55.9192903471,-82.9037572555,-100,0.0347437589998],
[55.9192903471,-82.9037572555,61.5661475326,-78.8010753607,-100,0.0353607299237],
[61.5661475326,-78.8010753607,66.9130606359,-74.3144825477,-100,0.0360117849773],
[66.9130606359,-74.3144825477,71.9339800339,-69.4658370459,-100,0.0367001830128],
[71.9339800339,-69.4658370459,76.6044443119,-64.2787609687,-100,0.0374296365383],
[76.6044443119,-64.2787609687,80.9016994375,-58.7785252292,-100,0.0382043962944],
[80.9016994375,-58.7785252292,84.8048096156,-52.9919264233,-100,0.0390293559412],
[84.8048096156,-52.9919264233,88.2947592859,-46.9471562786,-100,0.0399101827619],
[88.2947592859,-46.9471562786,91.3545457643,-40.6736643076,-100,0.0408534823895],
[91.3545457643,-40.6736643076,93.9692620786,-34.2020143326,-100,0.041867008546],
[93.9692620786,-34.2020143326,96.1261695938,-27.5637355817,-100,0.0429599330958],
[96.1261695938,-27.5637355817,97.8147600734,-20.7911690818,-100,0.0441431980494],
[97.8147600734,-20.7911690818,99.0268068742,-13.917310096,-100,0.045429980639],
[99.0268068742,-13.917310096,99.756405026,-6.97564737441,-100,0.0468363170735],
[99.756405026,-6.97564737441,100.0,-2.44929359829e-14,-100,0.0483819532264],
[100.0,-1.53979889652e-14,100,100,-100,1.30860649778],
[100,100,0.0,100.0,100,1.30860649778],
[0.0,100.0,-100,100,-100,1.30860649778],
[-100,100,-100.0,0.301776695297,100,1.30647742704],
[-100.0,0.301776695297,-100,-100,-100,1.41634583838],
];
function makePieces(records) {
var pieces = [];
for (var i = 0; i < records.length; i++) {
var r = records[i];
var x1 = r[0] * 1;
var y1 = r[1] * 1;
var x2 = r[2] * 1;
var y2 = r[3] * 1;
var a = r[4];
var t = r[5];
pieces.push(new Piece(pieces, x1, y1, x2, y2, a, t));
}
return pieces;
}
var Piece = function(parent, x1, y1, x2, y2, acceleration, duration) {
if (Array.isArray(parent)) {
parent = parent[parent.length - 1];
}
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
this.acceleration = acceleration;
this.duration = duration;
this.length = dist(x1, y1, x2, y2);
if (parent) {
this.t0 = parent.t1;
this.t1 = this.t0 + duration;
this.v0 = parent.v(this.t0);
this.x0 = parent.x(this.t0);
} else {
this.t0 = 0;
this.t1 = duration;
this.v0 = 0;
this.x0 = 0;
}
}
Piece.prototype.hasT = function(t) {
return t >= this.t0 && t < this.t1;
}
Piece.prototype.a = function(t) {
return this.acceleration;
}
Piece.prototype.v = function(t) {
t -= this.t0;
return this.v0 + this.acceleration * t;
}
Piece.prototype.x = function(t) {
t -= this.t0;
t = min(t, this.duration);
return this.x0 + this.v0 * t + this.acceleration * t * t / 2;
}
function evaluate(pieces, n, t) {
for (var i = 0; i < pieces.length; i++) {
if (pieces[i].hasT(t) || i == pieces.length - 1) {
switch (n) {
case 0: return pieces[i].x(t);
case 1: return pieces[i].v(t);
case 2: return pieces[i].a(t);
default: return 0;
}
}
}
return 0;
}
function computeBounds(pieces) {
var p = pieces[0];
var minx = p.x1;
var maxx = p.x1;
var miny = p.y1;
var maxy = p.y1;
for (var i = 0; i < pieces.length; i++) {
var piece = pieces[i];
minx = min(minx, piece.x1, piece.x2);
maxx = max(maxx, piece.x1, piece.x2);
miny = min(miny, piece.y1, piece.y2);
maxy = max(maxy, piece.y1, piece.y2);
}
var width = maxx - minx;
var height = maxy - miny;
return {
minx: minx, miny: miny, maxx: maxx, maxy: maxy,
width: width, height: height,
}
}
function drawPiece(dc, piece) {
dc.vertex(piece.x1, piece.y1);
dc.vertex(piece.x2, piece.y2);
}
function drawPieceLength(dc, piece, length) {
var x1 = piece.x1;
var y1 = piece.y1;
var x2 = lerp(piece.x1, piece.x2, length / piece.length);
var y2 = lerp(piece.y1, piece.y2, length / piece.length);
dc.vertex(x1, y1);
dc.vertex(x2, y2);
}
function drawPieces(dc, pieces, length) {
dc.beginShape();
for (var i = 0; i < pieces.length; i++) {
if (length <= 0) {
break;
}
var piece = pieces[i];
if (piece.length < length) {
drawPiece(dc, piece);
} else {
drawPieceLength(dc, piece, length);
}
length -= piece.length;
}
dc.endShape();
}
function Drawing(pieces) {
this.pieces = pieces;
this.bounds = computeBounds(pieces);
}
Drawing.prototype.setTransform = function(dc) {
var bounds = this.bounds;
var sx = dc.width / (bounds.width + 40);
var sy = dc.height / (bounds.height + 40);
var s = min(sx, sy);
var dx = (dc.width - bounds.width * s) / 2;
var dy = (dc.height - bounds.height * s) / 2;
dc.resetMatrix();
dc.translate(dx, dy);
dc.scale(s);
dc.translate(-bounds.minx, -bounds.miny);
}
Drawing.prototype.draw = function(dc, t) {
var length = evaluate(this.pieces, 0, t);
drawPieces(window, this.pieces, length);
}
var drawing;
function setup() {
drawing = new Drawing(makePieces(PIECES));
createCanvas(windowWidth, windowHeight);
restart();
}
function windowResized() {
resizeCanvas(windowWidth, windowHeight);
restart();
}
function setStyle(dc) {
dc.stroke(0);
dc.strokeWeight(1);
dc.strokeJoin(ROUND);
dc.noFill();
}
function restart() {
background(255);
}
function draw() {
var time = millis() / 1000;
var distance = evaluate(drawing.pieces, 0, time);
var velocity = evaluate(drawing.pieces, 1, time);
var acceleration = evaluate(drawing.pieces, 2, time);
var lastPiece = drawing.pieces[drawing.pieces.length - 1];
var maxTime = lastPiece.t1;
var maxDistance = lastPiece.x(maxTime);
var maxVelocity = 250;
var maxAcceleration = 100;
background(255);
setStyle(window);
drawing.setTransform(window);
drawing.draw(window, time);
resetMatrix();
noStroke();
fill(0, 0, 0);
rect(0, 0, time / maxTime * width, 10);
fill(255, 0, 0);
rect(0, height - 10, distance / maxDistance * width, 10);
fill(0, 255, 0);
rect(0, height - 20, velocity / maxVelocity * width, 10);
fill(0, 0, 255);
var w = acceleration / maxAcceleration * width / 2;
rect(width / 2, height - 30, w, 10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment