Line.fromPoints constructor

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

Implementation

Line.fromPoints(Vector2 p1, Vector2 p2)
    : this(
        p2.y - p1.y,
        p1.x - p2.x,
        p2.y * p1.x - p1.y * p2.x,
      );