Coord pointOnLineClosestTo(Coord point) { final perpLine = Line.fromSlopePoint(slope.perpendicular, point); return intersect(perpLine)!; }