fixup! Session2 30/9/22
This commit is contained in:
parent
2cbfccb8cc
commit
53f5808f7f
@ -112,8 +112,8 @@ def symetrie_orthogonale(d, p):
|
|||||||
|
|
||||||
|
|
||||||
def distance_droite_point(d, p):
|
def distance_droite_point(d, p):
|
||||||
"""TODO: Docstring for distance_droite_point.
|
""" donne la distance entre une droite et un point
|
||||||
:returns: TODO
|
:returns: distance la plus courte entre le point et la droite
|
||||||
|
|
||||||
"""
|
"""
|
||||||
a, b, c = d
|
a, b, c = d
|
||||||
|
@ -29,7 +29,7 @@ def tests():
|
|||||||
test(symetrie_orthogonale, (-0.5, 1, 1.0), (-2, 0), (-2.0, 0.0))
|
test(symetrie_orthogonale, (-0.5, 1, 1.0), (-2, 0), (-2.0, 0.0))
|
||||||
test(symetrie_orthogonale, (-0.5, 1, 1.0), (3, 4), (4.2, 1.6))
|
test(symetrie_orthogonale, (-0.5, 1, 1.0), (3, 4), (4.2, 1.6))
|
||||||
|
|
||||||
test(distance_droite_point, (-0.5, 1, 1.0), (-2, 0), 1.3416407864998741)
|
test(distance_droite_point, (-0.5, 1, 1.0), (3, 4), 1.3416407864998738)
|
||||||
test(distance_droite_point, (-0.5, 1, 1.0), (-2, 0), 0.0)
|
test(distance_droite_point, (-0.5, 1, 1.0), (-2, 0), 0.0)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user