distanceFromPoint method

num distanceFromPoint(
  1. Coord point
)

Implementation

num distanceFromPoint(Coord point) {
  final numerator = evaluate(point).abs();
  final denominator = sqrt(slope.a.sq + slope.b.sq);
  return numerator / denominator;
}