centroid property
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);
Get centroid of this triangle
The intersection of medians: ((ax+bx+cx)/3, (ay+by+cy)/3)
Point get centroid =>
Point((a.x + b.x + c.x) / 3, (a.y + b.y + c.y) / 3);