コード例 #1
0
ファイル: test_geometry.py プロジェクト: TovarnovM/easyvec
def test_polyline_area3():
    a = 1000
    pl = PolyLine([(1 + a, 2 + a), (11 + a, 2 + a), (10 + a, 0 + a),
                   (0 + a, 0 + a)],
                  copy_data=True)
    assert pl.get_area() == approx(20)
コード例 #2
0
ファイル: test_geometry.py プロジェクト: TovarnovM/easyvec
def test_polyline_area5():
    pl = PolyLine([(1, 1), (2, 1), (1, 3)], copy_data=True)
    assert pl.get_area() == approx(1)
コード例 #3
0
ファイル: test_geometry.py プロジェクト: TovarnovM/easyvec
def test_polyline_area2():
    pl = PolyLine([(1, 2), (11, 2), (10, 0), (0, 0)], copy_data=True)
    assert pl.get_area() == approx(20)