Exemplo n.º 1
0
def test_outside4b():
    tr = TestRectangle(1, 1, 2, 1, 2, 3, 1, 3)
    r = PSuperCollider.is_point_inside_rectangle(1.5, 3.3, tr) == False
    tst(r)
Exemplo n.º 2
0
def test_outside2c():
    dx = 0.01
    tr = TestRectangle(1, 0, 2, 1, 1, 2, 0, 1)
    r = PSuperCollider.is_point_inside_rectangle(1.5 + dx, 1.5, tr) == False
    tst(r)
Exemplo n.º 3
0
def test_inside4c():
    dx = 0.01
    tr = TestRectangle(1, 0, 2, 1, 1, 2, 0, 1)
    r = PSuperCollider.is_point_inside_rectangle(0.5 + dx, 0.5, tr) == True
    tst(r)