Python 3.5.2 : Distance from a point to a line
问题 I have created a class "Point" and i want to calculate the shortest distance between a given point and a line ( characterized by 2 other points ), all points are known. I tried to use this formula : |Ax+By+C| / sqrt(A^2+B^2) , but i messed up and got more confused by the minute (mostly because of math formulas :( )... I did find some sites where people asked this question too, but it either was not for Python or it was in a 3D system not 2D ... Below is my class : class Point: def __init__