コード例 #1
0
 def make_tests():
     return (
         (([[mp(49, -17), mp(83, -18), mp(-33, -54), mp(27, 82), mp(15, -97),
             mp(10, 97), mp(-37, -68), mp(26, 66), mp(49, -17)],
            [mp(-98, 55), mp(84, 27), mp(-81, 4), mp(94, -25), mp(-26, 42), mp(-98, 55)],
            [mp(60, -90), mp(59.5117046837911, -96.9829483518188), mp(59.3721917363029, -98.9780764523384),
             mp(60.2790258949765, -86.0097437989607), mp(60.4185388424647, -84.014615698441), mp(60, -90)],
           ],), (18.65154401154401, -14.746118326118323)),
         (([[mp(-53, 68), mp(-52, -23), mp(-74, -65), mp(-44, 46), mp(-61, 68), mp(-14, 12), mp(33, 58), mp(-53, 68)],
            [mp(-30, -70), mp(-91, 40), mp(46, -93), mp(-4, -35), mp(29, 28), mp(-30,-70)],
            [mp(90, 50), mp(88, 46.5358983848623), mp(83.5, 38.7416697508023), mp(86, 43.0717967697245),
             mp(87, 44.8038475772934), mp(84.5, 40.4737205583712), mp(90, 50)],
           ],), (-29.056049940231105, 26.2892371718245)),
     )
コード例 #2
0
 def make_tests():
     return (
         (([
             [
                 mp(49, -17),
                 mp(83, -18),
                 mp(-33, -54),
                 mp(27, 82),
                 mp(15, -97),
                 mp(10, 97),
                 mp(-37, -68),
                 mp(26, 66),
                 mp(49, -17)
             ],
             [
                 mp(-98, 55),
                 mp(84, 27),
                 mp(-81, 4),
                 mp(94, -25),
                 mp(-26, 42),
                 mp(-98, 55)
             ],
             [
                 mp(60, -90),
                 mp(59.5117046837911, -96.9829483518188),
                 mp(59.3721917363029, -98.9780764523384),
                 mp(60.2790258949765, -86.0097437989607),
                 mp(60.4185388424647, -84.014615698441),
                 mp(60, -90)
             ],
         ], ), (18.65154401154401, -14.746118326118323)),
         (([
             [
                 mp(-53, 68),
                 mp(-52, -23),
                 mp(-74, -65),
                 mp(-44, 46),
                 mp(-61, 68),
                 mp(-14, 12),
                 mp(33, 58),
                 mp(-53, 68)
             ],
             [
                 mp(-30, -70),
                 mp(-91, 40),
                 mp(46, -93),
                 mp(-4, -35),
                 mp(29, 28),
                 mp(-30, -70)
             ],
             [
                 mp(90, 50),
                 mp(88, 46.5358983848623),
                 mp(83.5, 38.7416697508023),
                 mp(86, 43.0717967697245),
                 mp(87, 44.8038475772934),
                 mp(84.5, 40.4737205583712),
                 mp(90, 50)
             ],
         ], ), (-29.056049940231105, 26.2892371718245)),
     )
コード例 #3
0
 def make_tests():
     return (
         ([mp(49, -17), mp(83, -18), mp(-33, -54), mp(27, 82), mp(15, -97),
           mp(10, 97), mp(-37, -68), mp(26, 66), mp(49, -17)], (24.031793687451884, -10.597882986913008, 4330.0)),
         ([mp(-98, 55), mp(84, 27), mp(-81, 4), mp(94, -25), mp(-26, 42), mp(-98, 55)],
           (2.5294117647058822, -27.17647058823529, 1445.0)),
         ([mp(-53, 68), mp(-52, -23), mp(-74, -65), mp(-44, 46), mp(-61, 68), mp(-14, 12), mp(33, 58), mp(-53, 68)],
           (-7.561094365870623, 59.29600432800061, 2156.5)),
         ([mp(60, -90), mp(59.5117046837911, -96.9829483518188), mp(59.3721917363029, -98.9780764523384),
           mp(60.2790258949765, -86.0097437989607), mp(60.4185388424647, -84.014615698441), mp(60, -90)], (60, -90, 0)),
         ([mp(90, 50), mp(88, 46.5358983848623), mp(83.5, 38.7416697508023), mp(86, 43.0717967697245),
           mp(87, 44.8038475772934), mp(84.5, 40.4737205583712), mp(90, 50)], (90, 50, 0)),
     )
コード例 #4
0
 def make_tests():
     return (
         ([
             mp(49, -17),
             mp(83, -18),
             mp(-33, -54),
             mp(27, 82),
             mp(15, -97),
             mp(10, 97),
             mp(-37, -68),
             mp(26, 66),
             mp(49, -17)
         ], (24.031793687451884, -10.597882986913008, 4330.0)),
         ([
             mp(-98, 55),
             mp(84, 27),
             mp(-81, 4),
             mp(94, -25),
             mp(-26, 42),
             mp(-98, 55)
         ], (2.5294117647058822, -27.17647058823529, 1445.0)),
         ([
             mp(-53, 68),
             mp(-52, -23),
             mp(-74, -65),
             mp(-44, 46),
             mp(-61, 68),
             mp(-14, 12),
             mp(33, 58),
             mp(-53, 68)
         ], (-7.561094365870623, 59.29600432800061, 2156.5)),
         ([
             mp(60, -90),
             mp(59.5117046837911, -96.9829483518188),
             mp(59.3721917363029, -98.9780764523384),
             mp(60.2790258949765, -86.0097437989607),
             mp(60.4185388424647, -84.014615698441),
             mp(60, -90)
         ], (60, -90, 0)),
         ([
             mp(90, 50),
             mp(88, 46.5358983848623),
             mp(83.5, 38.7416697508023),
             mp(86, 43.0717967697245),
             mp(87, 44.8038475772934),
             mp(84.5, 40.4737205583712),
             mp(90, 50)
         ], (90, 50, 0)),
     )