Example #1
0
def test_outside2():
    tr = TestRectangle(1, 1, 2, 1, 2, 3, 1, 3)
    r = approx(
        PSuperCollider.how_far_is_point_inside_of_rectangle(2.1, 1.1, tr),
        -0.1)
    tst(r)
Example #2
0
def test_outside4():
    tr = TestRectangle(1, 1, 2, 1, 2, 3, 1, 3)
    r = approx(
        PSuperCollider.how_far_is_point_inside_of_rectangle(1.5, 3.3, tr),
        -0.3)
    tst(r)
Example #3
0
def test_inside3():
    tr = TestRectangle(1, 1, 2, 1, 2, 3, 1, 3)
    r = approx(
        PSuperCollider.how_far_is_point_inside_of_rectangle(1.5, 1.2, tr), 0.2)
    tst(r)