centroid property

Point get centroid

Get centroid of this triangle

The intersection of medians: ((ax+bx+cx)/3, (ay+by+cy)/3)

Implementation

Point get centroid =>
    Point((a.x + b.x + c.x) / 3, (a.y + b.y + c.y) / 3);