center property

Point get center

Center point (average of vertices)

Implementation

Point get center => Point(
      (a.x + b.x + c.x + d.x) / 4,
      (a.y + b.y + c.y + d.y) / 4,
    );