Beispiel #1
0
def test_Projete_cercle():
    c = Cercle_equation(1, -2, -20)
    assert(c.existe)
    A = Point(randint(50) - randint(50) + random(), randint(50) - randint(50) + random())
    P = Projete_cercle(A, c)
    assert(P.existe)
    assert(P in c)
    assert(P in Demidroite(c.centre, A))
    A.coordonnees = c.centre.coordonnees
    assert(not P.existe)
Beispiel #2
0
def test_Projete_cercle():
    c = Cercle_equation(1, -2, -20)
    assert (c.existe)
    A = Point(
        randint(50) - randint(50) + random(),
        randint(50) - randint(50) + random())
    P = Projete_cercle(A, c)
    assert (P.existe)
    assert (P in c)
    assert (P in Demidroite(c.centre, A))
    A.coordonnees = c.centre.coordonnees
    assert (not P.existe)