PRectangle.fromPoints constructor

PRectangle.fromPoints(
  1. Point p1,
  2. Point p2
)

Implementation

factory PRectangle.fromPoints(Point p1, Point p2) =>
    PRectangle.fromCoordinates(p1.x, p1.y, p2.x, p2.y);