hasPoint method
- Point point
Check if a point is belong to this line
Implementation
bool hasPoint(Point point) {
final ac = point.distanceTo(a);
final bc = point.distanceTo(b);
final ab = a.distanceTo(b);
return (ac + bc - ab).abs() < 1e-10;
}