#include <bits/stdc++.h> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=B; } point() = default; }; struct line{ point a,b; line(point A,point B){ a = A,b = B; } line() = default; }; double getDistance(point P, line L){\ int y1 = L.a.y, y2 = L.b.y, x1 = L.a.x, x2...