fromPoints static method

Line fromPoints(
  1. Vector2 p1,
  2. Vector2 p2
)

Implementation

static Line fromPoints(Vector2 p1, Vector2 p2) {
  final a = p2.y - p1.y;
  final b = p1.x - p2.x;
  final c = p2.y * p1.x - p1.y * p2.x;
  return Line(a, b, c);
}