center property
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,
);
Center point (average of vertices)
Point get center => Point(
(a.x + b.x + c.x + d.x) / 4,
(a.y + b.y + c.y + d.y) / 4,
);