예제 #1
0
def test_closed_arrow():
    a = arrow2(3, 60, 45)
    assert len(a) == 4
    assert close_vectors(a, [(-3, 1.5), (0, 0), (-3, -1.5), (-1.5, 0)])
예제 #2
0
def test_closed_arrow():
    a = arrow2(3, 60, 45)
    assert len(a) == 4
    assert a == (Vec3(-3, 1.5), Vec3(0, 0), Vec3(-3, -1.5), Vec3(-1.5, 0))